This commit is contained in:
Kenneth Kehl
2023-08-29 14:54:30 -07:00
parent 19dcd7a48b
commit 1ecb747c6d
588 changed files with 34100 additions and 23589 deletions

View File

@@ -10,12 +10,13 @@ from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
revision = '0373_add_notifications_view'
down_revision = '0364_drop_old_column'
revision = "0373_add_notifications_view"
down_revision = "0364_drop_old_column"
def upgrade():
op.execute("""
op.execute(
"""
CREATE VIEW notifications_all_time_view AS
(
SELECT
@@ -71,7 +72,8 @@ def upgrade():
document_download_count
FROM notification_history
)
""")
"""
)
def downgrade():