forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db9349b
commit a8b15e8
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
lib/galaxy/model/migrations/alembic/versions_gxy/8067ed6a55e7_create_chatgxy_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""create chatGXY table | ||
Revision ID: 8067ed6a55e7 | ||
Revises: a99a5b52ccb8 | ||
Create Date: 2024-10-29 16:59:31.185936 | ||
""" | ||
|
||
from sqlalchemy import ( | ||
Column, | ||
ForeignKey, | ||
Integer, | ||
Text, | ||
) | ||
|
||
from galaxy.model.migrations.util import ( | ||
create_table, | ||
drop_table, | ||
) | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8067ed6a55e7' | ||
down_revision = 'a99a5b52ccb8' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
table_name= "chatgxy_responses" | ||
|
||
def upgrade(): | ||
create_table( | ||
table_name, | ||
Column('id', Integer, primary_key=True), | ||
Column('user_id', Integer, ForeignKey('job.id'), nullable=True), | ||
Column('response', Text, nullable=False), | ||
Column('feedback', Integer, nullable=True), | ||
) | ||
|
||
|
||
def downgrade(): | ||
drop_table(table_name) |