-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kalmyk markup groups -- ispras/lingvodoc-react#1152 (#1525)
* Init * now tsakorpus requires administrator for force mode only * mutations * model * model * next changes * alembic migration * fixes * daily work * fixes * next fixes * next work * fixes * next work * fixes * daily work * next work * next work * fixes * minor * fixed dnd metadata * refetching only changed lexical entries * cleanup * important fix * breakdown with markups * save xlsx * using real dictionary name * fix
- Loading branch information
Showing
7 changed files
with
722 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""markup_group_table | ||
Revision ID: 882f3864b825 | ||
Revises: 50847f29994c | ||
Create Date: 2024-12-04 18:14:28.470514 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '882f3864b825' | ||
down_revision = '50847f29994c' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from lingvodoc.models import SLBigInteger | ||
|
||
|
||
def upgrade(): | ||
op.create_table('markupgroup', | ||
sa.Column('object_id', SLBigInteger(), nullable=False), | ||
sa.Column('client_id', SLBigInteger(), nullable=False), | ||
sa.Column('perspective_object_id', SLBigInteger(), nullable=False), | ||
sa.Column('perspective_client_id', SLBigInteger(), nullable=False), | ||
sa.Column('type', sa.UnicodeText(), nullable=False), | ||
sa.Column('marked_for_deletion', sa.Boolean(), nullable=False), | ||
sa.Column('created_at', sa.TIMESTAMP(), nullable=False), | ||
sa.PrimaryKeyConstraint('object_id', 'client_id')) | ||
|
||
def downgrade(): | ||
op.drop_table('markupgroup') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.