You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
688 B
24 lines
688 B
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", |
|
), |
|
]
|
|
|