Redid migrations to fix issue where 004 isnt detected
This commit is contained in:
parent
01da177cd1
commit
bb28e2b2dc
@ -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
|
import apps.authentication.models
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import django.utils.timezone
|
import django.utils.timezone
|
||||||
|
import pathlib
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Department',
|
name='Department',
|
||||||
fields=[
|
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)),
|
('title', models.CharField(max_length=150)),
|
||||||
('icon', models.CharField(blank=True, max_length=32, null=True)),
|
('icon', models.CharField(blank=True, max_length=32, null=True)),
|
||||||
],
|
],
|
||||||
@ -29,8 +30,8 @@ class Migration(migrations.Migration):
|
|||||||
fields=[
|
fields=[
|
||||||
('password', models.CharField(max_length=128, verbose_name='password')),
|
('password', models.CharField(max_length=128, verbose_name='password')),
|
||||||
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
|
('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)),
|
('uuid', 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')),
|
('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')),
|
('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')),
|
('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')),
|
('surname', models.CharField(help_text='This should be your real last name.', max_length=150, verbose_name='last name')),
|
||||||
|
@ -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',
|
|
||||||
),
|
|
||||||
]
|
|
@ -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'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -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'),
|
|
||||||
),
|
|
||||||
]
|
|
Loading…
x
Reference in New Issue
Block a user