diff --git a/lib/galaxy/model/migrations/alembic/versions_gxy/8812a3a0aaf5_add_user_credentials_table.py b/lib/galaxy/model/migrations/alembic/versions_gxy/8812a3a0aaf5_add_user_credentials_table.py index 61458a1678a7..aebb8cfd1443 100644 --- a/lib/galaxy/model/migrations/alembic/versions_gxy/8812a3a0aaf5_add_user_credentials_table.py +++ b/lib/galaxy/model/migrations/alembic/versions_gxy/8812a3a0aaf5_add_user_credentials_table.py @@ -7,6 +7,7 @@ """ from sqlalchemy import ( + Boolean, Column, DateTime, Integer, @@ -26,7 +27,8 @@ user_credentials_table = "user_credentials" user_credentials_group_table = "user_credentials_group" -credential_table = "credential" +variable_table = "variable" +secret_table = "secret" def upgrade(): @@ -50,17 +52,25 @@ def upgrade(): Column("update_time", DateTime), ) create_table( - credential_table, + variable_table, Column("id", Integer, primary_key=True), Column("name", TrimmedString(255)), - Column("type", TrimmedString(255)), Column("value", TrimmedString(255)), Column("create_time", DateTime), Column("update_time", DateTime), ) + create_table( + secret_table, + Column("id", Integer, primary_key=True), + Column("name", TrimmedString(255)), + Column("already_set", Boolean), + Column("create_time", DateTime), + Column("update_time", DateTime), + ) def downgrade(): drop_table(user_credentials_table) drop_table(user_credentials_group_table) - drop_table(credential_table) + drop_table(variable_table) + drop_table(secret_table)