from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("finance", "0001_initial"), ] operations = [ migrations.RunSQL( sql=( "CREATE INDEX finance_tx_posting_date_idx " "ON finance_transaction (posting_date)" ), reverse_sql="DROP INDEX finance_tx_posting_date_idx", ), migrations.RunSQL( sql=( "CREATE INDEX finance_tx_account_posting_idx " "ON finance_transaction (account_id, posting_date)" ), reverse_sql="DROP INDEX finance_tx_account_posting_idx", ), ]