<filename>crows_foot/main/migrations/0001_initial.py
# Generated by Django 2.2 on 2019-05-09 00:52

from django.db import migrations
from ..db_util import db_util

def create_tables(apps, schema_editor):
    db_util.execute_sql_many(db_util.parse_schema())

def drop_tables(apps, schema_editor):
    db_util.execute_sql_many(db_util.parse_schema_drop())

class Migration(migrations.Migration):
    dependencies = []
    operations = [migrations.RunPython(create_tables, reverse_code=drop_tables)]
    #operations = [migrations.RunPython(create_tables, reverse_code=migrations.RunPython.noop)]

<filename>crows_foot/main/migrations/0001_initial.py
# Generated by Django 2.2 on 2019-05-09 00:52

from django.db import migrations
from ..db_util import db_util

def create_tables(apps, schema_editor):
    db_util.execute_sql_many(db_util.parse_schema())

def drop_tables(apps, schema_editor):
    db_util.execute_sql_many(db_util.parse_schema_drop())

class Migration(migrations.Migration):
    dependencies = []
    operations = [migrations.RunPython(create_tables, reverse_code=drop_tables)]
    #operations = [migrations.RunPython(create_tables, reverse_code=migrations.RunPython.noop)]

# Generated by Django 2.2 on 2019-05-09 00:52 #operations = [migrations.RunPython(create_tables, reverse_code=migrations.RunPython.noop)]