Added custom background-color

This commit is contained in:
Mawoka
2022-09-26 18:26:22 +02:00
parent 489d5c96d6
commit 7762f6632e
12 changed files with 239 additions and 122 deletions
@@ -0,0 +1,29 @@
"""added background-color
Revision ID: 400f8ed06c48
Revises: ec6cf07ff68a
Create Date: 2022-09-26 17:56:00.426804
"""
from alembic import op
import sqlalchemy as sa
import ormar
# revision identifiers, used by Alembic.
revision = "400f8ed06c48"
down_revision = "ec6cf07ff68a"
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("quiz", sa.Column("background_color", sa.Text(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("quiz", "background_color")
# ### end Alembic commands ###