Redid migrations to fix issue where 004 isnt detected

This commit is contained in:
Corban-Lee Jones 2024-01-19 10:00:40 +00:00
parent 01da177cd1
commit bb28e2b2dc
4 changed files with 5 additions and 67 deletions

View File

@ -1,9 +1,10 @@
# Generated by Django 3.2.16 on 2024-01-07 18:45
# Generated by Django 3.2.16 on 2024-01-19 09:34
import apps.authentication.models
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import pathlib
import uuid
@ -19,7 +20,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Department',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('title', models.CharField(max_length=150)),
('icon', models.CharField(blank=True, max_length=32, null=True)),
],
@ -29,8 +30,8 @@ class Migration(migrations.Migration):
fields=[
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('icon', models.ImageField(default='../static/assets/images/defaultuser.webp', storage=apps.authentication.models.OverwriteStorage(), upload_to=apps.authentication.models.IconPathGenerator(), verbose_name='profile picture')),
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('icon', models.ImageField(default=pathlib.PurePosixPath('/mnt/code/ticket-website/static/images/defaultuser.webp'), storage=apps.authentication.models.OverwriteStorage(), upload_to=apps.authentication.models.IconPathGenerator(), verbose_name='profile picture')),
('email', models.EmailField(error_messages={'unique': 'A user with this email address already exists.'}, max_length=254, unique=True, verbose_name='email address')),
('forename', models.CharField(help_text='This should be your real first name.', max_length=150, verbose_name='first name')),
('surname', models.CharField(help_text='This should be your real last name.', max_length=150, verbose_name='last name')),

View File

@ -1,23 +0,0 @@
# Generated by Django 3.2.16 on 2024-01-12 16:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('authentication', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='department',
old_name='id',
new_name='uuid',
),
migrations.RenameField(
model_name='user',
old_name='id',
new_name='uuid',
),
]

View File

@ -1,20 +0,0 @@
# Generated by Django 3.2.16 on 2024-01-18 10:46
import apps.authentication.models
from django.db import migrations, models
import pathlib
class Migration(migrations.Migration):
dependencies = [
('authentication', '0002_auto_20240112_1604'),
]
operations = [
migrations.AlterField(
model_name='user',
name='icon',
field=models.ImageField(default=pathlib.PurePosixPath('/mnt/code/ticket-website/static/images/defaultuser.webp'), storage=apps.authentication.models.OverwriteStorage(), upload_to=apps.authentication.models.IconPathGenerator(), verbose_name='profile picture'),
),
]

View File

@ -1,20 +0,0 @@
# Generated by Django 3.2.16 on 2024-01-18 20:14
import apps.authentication.models
from django.db import migrations, models
import pathlib
class Migration(migrations.Migration):
dependencies = [
('authentication', '0003_alter_user_icon'),
]
operations = [
migrations.AlterField(
model_name='user',
name='icon',
field=models.ImageField(default=pathlib.PurePosixPath('/mnt/storage/projects/Websites/ticket-website/static/images/defaultuser.webp'), storage=apps.authentication.models.OverwriteStorage(), upload_to=apps.authentication.models.IconPathGenerator(), verbose_name='profile picture'),
),
]