mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-25 07:49:37 +02:00
Refactor database field names for adventures and users
This commit is contained in:
parent
78c5331117
commit
2425107090
2 changed files with 68 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
||||||
|
# Generated by Django 5.0.8 on 2024-08-11 12:59
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('adventures', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='adventure',
|
||||||
|
old_name='id',
|
||||||
|
new_name='temp_id',
|
||||||
|
),
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='checklist',
|
||||||
|
old_name='id',
|
||||||
|
new_name='temp_id',
|
||||||
|
),
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='checklistitem',
|
||||||
|
old_name='id',
|
||||||
|
new_name='temp_id',
|
||||||
|
),
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='collection',
|
||||||
|
old_name='id',
|
||||||
|
new_name='temp_id',
|
||||||
|
),
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='note',
|
||||||
|
old_name='id',
|
||||||
|
new_name='temp_id',
|
||||||
|
),
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='transportation',
|
||||||
|
old_name='id',
|
||||||
|
new_name='temp_id',
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,25 @@
|
||||||
|
# Generated by Django 5.0.8 on 2024-08-11 12:59
|
||||||
|
|
||||||
|
import uuid
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('users', '0003_remove_customuser_id_customuser_uuid'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='customuser',
|
||||||
|
name='id',
|
||||||
|
field=models.BigAutoField(auto_created=True, default=None, primary_key=True, serialize=False, verbose_name='ID'),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='customuser',
|
||||||
|
name='uuid',
|
||||||
|
field=models.UUIDField(blank=True, default=uuid.uuid4, null=True, unique=True),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue