mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
reformat
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user