mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-30 04:53:03 +00:00
71 lines
2.2 KiB
Python
71 lines
2.2 KiB
Python
# Generated by Django 2.2.17 on 2021-10-23 17:29
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('media', '0041_auto_20211023_1838'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RenameModel(
|
|
old_name='CD',
|
|
new_name='OldCD',
|
|
),
|
|
migrations.RenameModel(
|
|
old_name='Manga',
|
|
new_name='OldManga',
|
|
),
|
|
# Remove index before renaming the model
|
|
migrations.AlterField(
|
|
model_name='game',
|
|
name='owner',
|
|
field=models.ForeignKey(db_index=False, on_delete=models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='owner'),
|
|
),
|
|
migrations.RenameModel(
|
|
old_name='Game',
|
|
new_name='OldGame',
|
|
),
|
|
migrations.AlterField(
|
|
model_name='oldgame',
|
|
name='owner',
|
|
field=models.ForeignKey(db_index=True, on_delete=models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='owner'),
|
|
),
|
|
migrations.RenameField(
|
|
model_name='oldgame',
|
|
old_name='name',
|
|
new_name='title',
|
|
),
|
|
migrations.RenameModel(
|
|
old_name='Novel',
|
|
new_name='OldNovel',
|
|
),
|
|
migrations.RenameModel(
|
|
old_name='Comic',
|
|
new_name='OldComic',
|
|
),
|
|
migrations.RenameModel(
|
|
old_name='Review',
|
|
new_name='OldReview',
|
|
),
|
|
migrations.RenameModel(
|
|
old_name='Vinyl',
|
|
new_name='OldVinyl',
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='oldcomic',
|
|
options={'ordering': ['title', 'subtitle'], 'verbose_name': 'comic', 'verbose_name_plural': 'comics'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='oldmanga',
|
|
options={'ordering': ['title'], 'verbose_name': 'manga', 'verbose_name_plural': 'mangas'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='oldnovel',
|
|
options={'ordering': ['title', 'subtitle'], 'verbose_name': 'novel', 'verbose_name_plural': 'novels'},
|
|
),
|
|
]
|