mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
Set up database schema migration
This commit is contained in:
parent
bdcb6445c7
commit
a9525503c6
@ -0,0 +1,26 @@
|
||||
"""Add tags field to templates
|
||||
|
||||
Revision ID: 98083573d011
|
||||
Revises: 9a5292aa4389
|
||||
Create Date: 2026-02-23 18:23:59.857607
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '98083573d011'
|
||||
down_revision = '9a5292aa4389'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
|
||||
op.add_column('templates', sa.Column('tags', sa.String()))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
|
||||
op.drop_column('templates', 'tags')
|
||||
Loading…
x
Reference in New Issue
Block a user