mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Add dad jokes
This commit is contained in:
parent
3d0f771f94
commit
3debd18d82
11 changed files with 165 additions and 4 deletions
33
alembic/versions/581ae6511b98_add_dad_jokes.py
Normal file
33
alembic/versions/581ae6511b98_add_dad_jokes.py
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
"""Add dad jokes
|
||||
|
||||
Revision ID: 581ae6511b98
|
||||
Revises: 632b69cdadde
|
||||
Create Date: 2022-07-15 23:37:08.147611
|
||||
|
||||
"""
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = "581ae6511b98"
|
||||
down_revision = "632b69cdadde"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table(
|
||||
"dad_jokes",
|
||||
sa.Column("dad_joke_id", sa.Integer(), nullable=False),
|
||||
sa.Column("joke", sa.Text(), nullable=False),
|
||||
sa.PrimaryKeyConstraint("dad_joke_id"),
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table("dad_jokes")
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue