2019-02-14 11:57:27 +01:00
|
|
|
""" Set 'deleted' flag from null to false on all certificates once
|
|
|
|
|
|
|
|
Revision ID: 318b66568358
|
|
|
|
Revises: 9f79024fe67b
|
|
|
|
Create Date: 2019-02-05 15:42:25.477587
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2019-05-16 07:57:02 -07:00
|
|
|
revision = "318b66568358"
|
|
|
|
down_revision = "9f79024fe67b"
|
2019-02-14 11:57:27 +01:00
|
|
|
|
|
|
|
from alembic import op
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
connection = op.get_bind()
|
|
|
|
# Delete duplicate entries
|
2019-05-16 07:57:02 -07:00
|
|
|
connection.execute("UPDATE certificates SET deleted = false WHERE deleted IS NULL")
|
2019-02-14 11:57:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
pass
|