add migrations for datetime field renames

This commit is contained in:
Nick Sweeting 2024-09-04 23:44:13 -07:00
parent 0fef2357c7
commit ed5357cec9
No known key found for this signature in database
4 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,39 @@
# Generated by Django 5.1 on 2024-09-05 00:26
import abid_utils.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0008_alter_apitoken_created_alter_apitoken_created_by_and_more'),
]
operations = [
migrations.RenameField(
model_name='apitoken',
old_name='created',
new_name='created_at',
),
migrations.RenameField(
model_name='apitoken',
old_name='modified',
new_name='modified_at',
),
migrations.RenameField(
model_name='outboundwebhook',
old_name='modified',
new_name='modified_at',
),
migrations.AddField(
model_name='outboundwebhook',
name='created_at',
field=abid_utils.models.AutoDateTimeField(db_index=True, default=None),
),
migrations.AlterField(
model_name='outboundwebhook',
name='created',
field=models.DateTimeField(auto_now_add=True, help_text='When the webhook was created.', verbose_name='created'),
),
]

View file

@ -0,0 +1,23 @@
# Generated by Django 5.1 on 2024-09-05 00:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0071_remove_archiveresult_old_id_remove_snapshot_old_id_and_more'),
]
operations = [
migrations.RenameField(
model_name='snapshot',
old_name='added',
new_name='bookmarked_at',
),
migrations.RenameField(
model_name='snapshot',
old_name='updated',
new_name='downloaded_at',
),
]

View file

@ -0,0 +1,43 @@
# Generated by Django 5.1 on 2024-09-05 00:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0072_rename_added_snapshot_bookmarked_at_and_more'),
]
operations = [
migrations.RenameField(
model_name='archiveresult',
old_name='created',
new_name='created_at',
),
migrations.RenameField(
model_name='archiveresult',
old_name='modified',
new_name='modified_at',
),
migrations.RenameField(
model_name='snapshot',
old_name='created',
new_name='created_at',
),
migrations.RenameField(
model_name='snapshot',
old_name='modified',
new_name='modified_at',
),
migrations.RenameField(
model_name='tag',
old_name='created',
new_name='created_at',
),
migrations.RenameField(
model_name='tag',
old_name='modified',
new_name='modified_at',
),
]

View file

@ -0,0 +1,18 @@
# Generated by Django 5.1 on 2024-09-05 01:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0073_rename_created_archiveresult_created_at_and_more'),
]
operations = [
migrations.AlterField(
model_name='snapshot',
name='downloaded_at',
field=models.DateTimeField(blank=True, db_index=True, default=None, editable=False, null=True),
),
]