Allow editing of product version with the right permission.
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
"""temporal products editing
|
||||
|
||||
Revision ID: c123dbf9c659
|
||||
Revises: e5e8acfc6495
|
||||
Create Date: 2021-08-06 10:15:57.719313
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
from barker.models.permission import Permission
|
||||
|
||||
|
||||
revision = "c123dbf9c659"
|
||||
down_revision = "e5e8acfc6495"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute(
|
||||
Permission.__table__.insert().values(id="eb604d72-8cbc-4fcb-979c-4713eaf34e56", name="Temporal Products")
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
||||
Reference in New Issue
Block a user