Initial commit for sqlalchemy2.0 migration

This commit is contained in:
Aditi Anand
2024-03-13 12:42:11 -04:00
parent 158316a77b
commit 385ec3583f
23 changed files with 1694 additions and 1590 deletions

View File

@@ -26,7 +26,9 @@ def upgrade():
"sms_requested = 0, sms_delivered = 0, sms_failed=0 where day > '2016-06-30'"
)
op.execute(reset_counts)
all_notifications = "select * from notifications where date(created_at) > '2016-06-30' order by created_at;"
all_notifications = text(
"select * from notifications where date(created_at) > '2016-06-30' order by created_at;"
)
results = conn.execute(all_notifications)
res = results.fetchall()