27 lines
499 B
Python
27 lines
499 B
Python
import os
|
|
|
|
from django.db import migrations
|
|
|
|
with open(
|
|
os.path.join(
|
|
os.path.dirname(os.path.realpath(__file__)),
|
|
'..',
|
|
'sql',
|
|
'invoice_triggers_for_amount.sql',
|
|
)
|
|
) as sql_file:
|
|
sql_triggers = sql_file.read()
|
|
|
|
|
|
sql_forwards = sql_triggers
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('invoicing', '0002_invoice'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunSQL(sql=sql_forwards, reverse_sql=migrations.RunSQL.noop),
|
|
]
|