- Adaptation of DPA and T&Cs - Refer to privacy statement as DPA, not a privacy statement - Startup of enforcing signed DPA and T&Cs - Adaptation of eveai_chat_client to ensure we retrieve correct DPA & T&Cs
37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
"""Add ConsentVersion model
|
|
|
|
Revision ID: 8bfd440079a5
|
|
Revises: 411f5593460e
|
|
Create Date: 2025-10-09 14:12:41.318538
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '8bfd440079a5'
|
|
down_revision = '411f5593460e'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('consent_version',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('consent_type', sa.String(length=50), nullable=False),
|
|
sa.Column('consent_version', sa.String(length=20), nullable=False),
|
|
sa.Column('consent_valid_from', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
|
|
sa.Column('consent_valid_to', sa.DateTime(), nullable=True),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
schema='public'
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('consent_version', schema='public')
|
|
# ### end Alembic commands ###
|