add a line that adds Monitoring app ipp if it did not exist yet

This commit is contained in:
Maarten de Waard 2022-10-04 15:45:37 +02:00
parent 5ac175e44e
commit eeb2456f0f
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA

View file

@ -22,6 +22,9 @@ def upgrade():
op.add_column('app', sa.Column('url', sa.String(length=128), nullable=True)) op.add_column('app', sa.Column('url', sa.String(length=128), nullable=True))
# ### end Alembic commands ### # ### end Alembic commands ###
# Add monitoring app
op.execute(f'INSERT IGNORE INTO app (`name`, `slug`) VALUES ("Monitoring","monitoring")')
def downgrade(): def downgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###