WhisperMaPhone/thoughts/migrations
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
..
0001_initial.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00
0002_auto_20200906_0324.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00
0003_thought_uuid.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00
0004_thought_media.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00
0005_thought_media_alt.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00
0006_alter_thought_text.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00
__init__.py Rename 'main' to 'thoughts' 2022-04-30 13:34:39 -04:00