Commit before setting up a new deployment environment

This commit is contained in:
Josako
2024-06-21 13:21:54 +02:00
parent cc9f6c95aa
commit 348bdf2c15
1208 changed files with 504328 additions and 19 deletions

BIN
migrations/tenant/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,30 @@
"""Adding detailed_question information to Interaction
Revision ID: a3f3f5eaa3de
Revises: 6fbceab656a8
Create Date: 2024-06-12 17:26:46.985680
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a3f3f5eaa3de'
down_revision = '6fbceab656a8'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('interaction', sa.Column('detailed_question', sa.Text(), nullable=True))
op.add_column('interaction', sa.Column('detailed_question_at', sa.DateTime(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('interaction', 'detailed_question_at')
op.drop_column('interaction', 'detailed_question')
# ### end Alembic commands ###

View File

@@ -0,0 +1,28 @@
"""Interaction appreciation should be NULL, not 100 as default
Revision ID: cb01c9192dc1
Revises: a3f3f5eaa3de
Create Date: 2024-06-14 07:06:50.522128
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cb01c9192dc1'
down_revision = 'a3f3f5eaa3de'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###

View File

@@ -0,0 +1,30 @@
"""Added timezone information of chat user to ChatSession and Interaction
Revision ID: d173cea8d204
Revises: cb01c9192dc1
Create Date: 2024-06-20 11:10:35.207702
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd173cea8d204'
down_revision = 'cb01c9192dc1'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('chat_session', sa.Column('timezone', sa.String(length=30), nullable=True))
op.add_column('interaction', sa.Column('timezone', sa.String(length=30), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('interaction', 'timezone')
op.drop_column('chat_session', 'timezone')
# ### end Alembic commands ###