Initial commit
This commit is contained in:
commit
983cee0320
322 changed files with 57174 additions and 0 deletions
16
migrations/add_recurring_expenses.py
Normal file
16
migrations/add_recurring_expenses.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"""
|
||||
Migration script to add recurring_expenses table to the database
|
||||
Run this script to update the database schema
|
||||
"""
|
||||
from app import create_app, db
|
||||
from app.models import RecurringExpense
|
||||
|
||||
def migrate():
|
||||
app = create_app()
|
||||
with app.app_context():
|
||||
# Create the recurring_expenses table
|
||||
db.create_all()
|
||||
print("✓ Migration complete: recurring_expenses table created")
|
||||
|
||||
if __name__ == '__main__':
|
||||
migrate()
|
||||
Loading…
Add table
Add a link
Reference in a new issue