✨ Added periodic reminders and included alembic migration in container
This commit is contained in:
parent
86a5dd19b5
commit
1f1ae5077e
7 changed files with 61 additions and 11 deletions
|
@ -6,6 +6,8 @@ from sqlalchemy import pool
|
|||
|
||||
from alembic import context
|
||||
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
# this is the Alembic Config object, which provides
|
||||
# access to the values within the .ini file in use.
|
||||
|
|
30
alembic/versions/c2bcd940c9e8_add_current_reminder_date.py
Normal file
30
alembic/versions/c2bcd940c9e8_add_current_reminder_date.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
"""Add current reminder date
|
||||
|
||||
Revision ID: c2bcd940c9e8
|
||||
Revises: 12669d9a145b
|
||||
Create Date: 2024-06-16 22:21:27.188128
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = 'c2bcd940c9e8'
|
||||
down_revision: Union[str, None] = '12669d9a145b'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('current_reminder_date', sa.Date(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('user', 'current_reminder_date')
|
||||
# ### end Alembic commands ###
|
Loading…
Add table
Add a link
Reference in a new issue