WhisperMaPhone/thoughts/migrations/0005_thought_media_alt.py
Matthias Portzel 1defa2b92c Rename 'main' to 'thoughts'
SQL to migrate the DB. Create migrations, migrate
`DELETE FROM django_content_type WHERE app_label='thoughts';`
`UPDATE django_content_type SET app_label='thoughts' WHERE app_label='main';`
`DROP TABLE thoughts_thought;`
`ALTER TABLE main_thought RENAME TO thoughts_thought;`
`DELETE FROM django_migrations WHERE app='main';`
Hopefully that's right, I'm not going to double check it or anything.
2022-04-30 13:34:39 -04:00

19 lines
379 B
Python

# Generated by Django 3.2 on 2021-05-01 20:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('thoughts', '0004_thought_media'),
]
operations = [
migrations.AddField(
model_name='thought',
name='media_alt',
field=models.TextField(blank=True),
),
]