Skip to content

Commit

Permalink
Add prev. version 180 as new revision.
Browse files Browse the repository at this point in the history
Reason: 180 was added in dev, so it was not in 21.09.
  • Loading branch information
jdavcs committed Mar 9, 2022
1 parent 39af550 commit c0fc555
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/migrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

ALEMBIC_TABLE = 'alembic_version'
SQLALCHEMYMIGRATE_TABLE = 'migrate_version'
SQLALCHEMYMIGRATE_LAST_VERSION_GXY = 180
SQLALCHEMYMIGRATE_LAST_VERSION_GXY = 179
SQLALCHEMYMIGRATE_LAST_VERSION_TSI = 17
log = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""create table vault
Revision ID: 40aaada107df
Revises: e7b6dcb09efd
Create Date: 2022-01-19 10:47:47.135278
"""
import datetime

import sqlalchemy as sa
from alembic import op


# revision identifiers, used by Alembic.
revision = '40aaada107df'
down_revision = 'e7b6dcb09efd'
branch_labels = None
depends_on = None


def upgrade():
now = datetime.datetime.utcnow
op.create_table('vault',
sa.Column('key', sa.Text, primary_key=True),
sa.Column('parent_key', sa.Text, sa.ForeignKey('vault.key'), index=True, nullable=True),
sa.Column('value', sa.Text, nullable=True),
sa.Column("create_time", sa.DateTime, default=now),
sa.Column("update_time", sa.DateTime, default=now, onupdate=now),
)


def downgrade():
op.drop_table('vault')

0 comments on commit c0fc555

Please sign in to comment.