-
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.
Merge pull request #218 from ispras/tmprefactor
Version 1.0
- Loading branch information
Showing
60 changed files
with
87,215 additions
and
32,821 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
alembic/versions/34c4a3c687b_additional_metadata_on_perspectives_and_.py
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,28 @@ | ||
"""additional metadata on perspectives and dictionaries | ||
Revision ID: 34c4a3c687b | ||
Revises: 28894fa7718 | ||
Create Date: 2015-11-13 13:53:15.258799 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '34c4a3c687b' | ||
down_revision = '28894fa7718' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('dictionaryperspective', sa.Column('additional_metadata', sa.UnicodeText(), nullable=True)) | ||
op.add_column('dictionary', sa.Column('additional_metadata', sa.UnicodeText(), nullable=True)) | ||
pass | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('dictionary', 'additional_metadata') | ||
op.drop_column('dictionaryperspective', 'additional_metadata') | ||
pass |
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,42 @@ | ||
"""Added indexes | ||
Revision ID: 479841e119f | ||
Revises: 34c4a3c687b | ||
Create Date: 2015-12-01 16:21:32.634476 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '479841e119f' | ||
down_revision = '34c4a3c687b' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.create_index('pl1e_parent_idx', 'publishleveloneentity', ['parent_client_id', 'parent_object_id'], unique=False) | ||
op.create_index('pl1e_entity_type_idx', 'publishleveloneentity', ['entity_type'], unique=False) | ||
op.create_index('pl1e_entity_idx', 'publishleveloneentity', ['entity_client_id', 'entity_object_id'], unique=False) | ||
op.create_index('pl1e_deleted_idx', 'publishleveloneentity', ['marked_for_deletion'], unique=False) | ||
op.create_index('l1e_parent_idx', 'leveloneentity', ['parent_client_id', 'parent_object_id'], unique=False) | ||
op.create_index('l1e_entity_type_idx', 'leveloneentity', ['entity_type'], unique=False) | ||
op.create_index('l1e_deleted_idx', 'leveloneentity', ['marked_for_deletion'], unique=False) | ||
op.create_index('l1e_content_idx', 'leveloneentity', ['content'], unique=False) | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_index('l1e_content_idx', table_name='leveloneentity') | ||
op.drop_index('l1e_deleted_idx', table_name='leveloneentity') | ||
op.drop_index('l1e_entity_type_idx', table_name='leveloneentity') | ||
op.drop_index('l1e_parent_idx', table_name='leveloneentity') | ||
op.drop_index('pl1e_deleted_idx', table_name='publishleveloneentity') | ||
op.drop_index('pl1e_entity_idx', table_name='publishleveloneentity') | ||
op.drop_index('pl1e_entity_type_idx', table_name='publishleveloneentity') | ||
op.drop_index('pl1e_parent_idx', table_name='publishleveloneentity') | ||
### end Alembic commands ### |
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,56 @@ | ||
"""Added more indexes | ||
Revision ID: 4eaaa494e36 | ||
Revises: 479841e119f | ||
Create Date: 2015-12-01 16:53:27.562361 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4eaaa494e36' | ||
down_revision = '479841e119f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.create_index('pl2e_parent_idx', 'publishleveltwoentity', ['parent_client_id', 'parent_object_id'], unique=False) | ||
op.create_index('pl2e_entity_type_idx', 'publishleveltwoentity', ['entity_type'], unique=False) | ||
op.create_index('pl2e_entity_idx', 'publishleveltwoentity', ['entity_client_id', 'entity_object_id'], unique=False) | ||
op.create_index('pl2e_deleted_idx', 'publishleveltwoentity', ['marked_for_deletion'], unique=False) | ||
op.create_index('l2e_parent_idx', 'leveltwoentity', ['parent_client_id', 'parent_object_id'], unique=False) | ||
op.create_index('l2e_entity_type_idx', 'leveltwoentity', ['entity_type'], unique=False) | ||
op.create_index('l2e_deleted_idx', 'leveltwoentity', ['marked_for_deletion'], unique=False) | ||
op.create_index('l2e_content_idx', 'leveltwoentity', ['content'], unique=False) | ||
op.create_index('pge_parent_idx', 'publishgroupingentity', ['parent_client_id', 'parent_object_id'], unique=False) | ||
op.create_index('pge_entity_type_idx', 'publishgroupingentity', ['entity_type'], unique=False) | ||
op.create_index('pge_entity_idx', 'publishgroupingentity', ['entity_client_id', 'entity_object_id'], unique=False) | ||
op.create_index('pge_deleted_idx', 'publishgroupingentity', ['marked_for_deletion'], unique=False) | ||
op.create_index('ge_parent_idx', 'groupingentity', ['parent_client_id', 'parent_object_id'], unique=False) | ||
op.create_index('ge_entity_type_idx', 'groupingentity', ['entity_type'], unique=False) | ||
op.create_index('ge_deleted_idx', 'groupingentity', ['marked_for_deletion'], unique=False) | ||
op.create_index('ge_content_idx', 'groupingentity', ['content'], unique=False) | ||
pass | ||
|
||
|
||
def downgrade(): | ||
op.drop_index('l2e_content_idx', table_name='leveltwoentity') | ||
op.drop_index('l2e_deleted_idx', table_name='leveltwoentity') | ||
op.drop_index('l2e_entity_type_idx', table_name='leveltwoentity') | ||
op.drop_index('l2e_parent_idx', table_name='leveltwoentity') | ||
op.drop_index('pl2e_deleted_idx', table_name='publishleveltwoentity') | ||
op.drop_index('pl2e_entity_idx', table_name='publishleveltwoentity') | ||
op.drop_index('pl2e_entity_type_idx', table_name='publishleveltwoentity') | ||
op.drop_index('pl2e_parent_idx', table_name='publishleveltwoentity') | ||
op.drop_index('ge_content_idx', table_name='groupingentity') | ||
op.drop_index('ge_deleted_idx', table_name='groupingentity') | ||
op.drop_index('ge_entity_type_idx', table_name='groupingentity') | ||
op.drop_index('ge_parent_idx', table_name='groupingentity') | ||
op.drop_index('pge_deleted_idx', table_name='publishgroupingentity') | ||
op.drop_index('pge_entity_idx', table_name='publishgroupingentity') | ||
op.drop_index('pge_entity_type_idx', table_name='publishgroupingentity') | ||
op.drop_index('pge_parent_idx', table_name='publishgroupingentity') | ||
pass |
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.