Přidávám (si) poznámky o tom, jak se to bastlí :-)
This commit is contained in:
parent
7a34fced0a
commit
ae8040fb04
2 changed files with 9 additions and 0 deletions
6
split-apps-meta/dummy_migration.py
Normal file
6
split-apps-meta/dummy_migration.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from django.db import migrations
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
('APP', 'MIGR'),
|
||||||
|
]
|
||||||
|
operations = []
|
3
split-apps-meta/pre.sh
Normal file
3
split-apps-meta/pre.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
for app in whatever I want; do
|
||||||
|
./manage.py makemigrations --empty $app
|
||||||
|
vim seminar/migrations/whatever.py # add the other as depends.
|
Loading…
Reference in a new issue