Skip to content

Commit 52eacc0

Browse files
committed
create new alembic revision for forge_instance table
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
1 parent 2a81225 commit 52eacc0

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"""introduce empty instances table
2+
3+
Revision ID: 42
4+
Revises: 41
5+
Create Date: 2026-05-07 15:51:17.510641
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = '42'
14+
down_revision = '41'
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade():
20+
# ### commands auto generated by Alembic - please adjust! ###
21+
op.create_table('forge_instance',
22+
sa.Column('id', sa.Integer(), nullable=False, comment='Internal unique identifier for this forge instance'),
23+
sa.Column('platform_type', sa.Integer(), nullable=False, comment='Type specifier identifying the relevant platform API interface to CollectOSS'),
24+
sa.Column('name', sa.String(), nullable=False, comment='User-specified name for this forge instance'),
25+
sa.Column('date_added', sa.DateTime(timezone=True), nullable=False),
26+
sa.Column('domain_name', sa.String(), nullable=False, comment='The base domain name (without the scheme) where this instance is hosted'),
27+
sa.Column('enabled', sa.Boolean(), nullable=False, comment='denotes whether collection should run for this instance'),
28+
sa.PrimaryKeyConstraint('id'),
29+
schema='augur_operations'
30+
)
31+
# ### end Alembic commands ###
32+
33+
34+
def downgrade():
35+
# ### commands auto generated by Alembic - please adjust! ###
36+
op.drop_table('forge_instance', schema='augur_operations')
37+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)