Skip to content

Commit

Permalink
Merge pull request #43 from KaartGroup/FIXUP/alter-editor-enum
Browse files Browse the repository at this point in the history
Fixup/alter editor enum
  • Loading branch information
Zack LaVergne authored Feb 4, 2020
2 parents 53e2eff + 83460a2 commit ed0fa82
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions migrations/versions/51ccc46f1b8a_.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ def upgrade():
sa.ForeignKeyConstraint(['project_id'], ['projects.id'], ),
sa.PrimaryKeyConstraint('project_id')
)

op.alter_column(
"projects",
"mapping_editors",
type_=sa.ARRAY(sa.Integer),
postgresql_using="array_replace(validation_editors, 4, 10005);"
)

op.alter_column(
"projects",
"validation_editors",
type_=sa.ARRAY(sa.Integer),
postgresql_using="array_replace(validation_editors, 4, 10005);"
)

# ### end Alembic commands ###


Expand Down

0 comments on commit ed0fa82

Please sign in to comment.