"Fossies" - the Fresh Open Source Software Archive

Member "mailman-3.3.7/src/mailman/database/alembic/versions/2bb9b382198_workflow_state_table.py" (10 Nov 2022, 705 Bytes) of package /linux/misc/mailman-3.3.7.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "2bb9b382198_workflow_state_table.py" see the Fossies "Dox" file reference documentation.

    1 """Workflow state table
    2 
    3 Revision ID: 2bb9b382198
    4 Revises: 16c2b25c7b
    5 Create Date: 2015-03-25 18:09:18.338790
    6 
    7 """
    8 
    9 import sqlalchemy as sa
   10 
   11 from alembic import op
   12 from mailman.database.types import SAUnicode
   13 
   14 
   15 # Revision identifiers, used by Alembic.
   16 revision = '2bb9b382198'
   17 down_revision = '16c2b25c7b'
   18 
   19 
   20 def upgrade():
   21     op.create_table(
   22         'workflowstate',
   23         sa.Column('name', SAUnicode(), nullable=False),
   24         sa.Column('token', SAUnicode(), nullable=False),
   25         sa.Column('step', SAUnicode(), nullable=True),
   26         sa.Column('data', SAUnicode(), nullable=True),
   27         sa.PrimaryKeyConstraint('name', 'token')
   28         )
   29 
   30 
   31 def downgrade():
   32     op.drop_table('workflowstate')