Added background-image to quizzes

This commit is contained in:
Mawoka
2022-12-28 19:07:32 +01:00
parent d89f934f5b
commit 1633d56299
9 changed files with 114 additions and 6 deletions
@@ -0,0 +1,29 @@
"""Added background_image
Revision ID: 820e06ef2c2a
Revises: 694cb11c6886
Create Date: 2022-12-28 18:27:57.035467
"""
from alembic import op
import sqlalchemy as sa
import ormar
# revision identifiers, used by Alembic.
revision = "820e06ef2c2a"
down_revision = "694cb11c6886"
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("quiz", sa.Column("background_image", sa.Text(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("quiz", "background_image")
# ### end Alembic commands ###