mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Making Channel.tag_id migration lazier to avoid rare errors.
This commit is contained in:
parent
79e88d1bc6
commit
ca51f3a268
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def upgrade():
|
|||
bind = op.get_bind()
|
||||
session = Session(bind=bind)
|
||||
|
||||
session.execute('ALTER TABLE channel ADD COLUMN tag_id INTEGER REFERENCES tag(id)')
|
||||
session.execute('ALTER TABLE channel ADD COLUMN IF NOT EXISTS tag_id INTEGER REFERENCES tag(id)')
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue