<gh_stars>10-100
"""add groups accessRights

Revision ID: 1ca14c33e65c
Revises: 53e095260441
Create Date: 2020-05-29 13:28:10.425714+00:00

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '1ca14c33e65c'
down_revision = '53e095260441'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('groups', sa.Column('access_rights', postgresql.JSONB(astext_type=sa.Text()), server_default=sa.text("'{}'::jsonb"), nullable=False))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('groups', 'access_rights')
    # ### end Alembic commands ###

"""add groups accessRights

Revision ID: 1ca14c33e65c
Revises: 53e095260441
Create Date: 2020-05-29 13:28:10.425714+00:00

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '1ca14c33e65c'
down_revision = '53e095260441'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('groups', sa.Column('access_rights', postgresql.JSONB(astext_type=sa.Text()), server_default=sa.text("'{}'::jsonb"), nullable=False))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('groups', 'access_rights')
    # ### end Alembic commands ###
add groups accessRights  Revision ID: 1ca14c33e65c Revises: 53e095260441 Create Date: 2020-05-29 13:28:10.425714+00:00 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###