<commit_before>"""Add unique constraint on quarter current

Revision ID: 7fce5e7f49af
Revises: <PASSWORD>
Create Date: 2018-03-10 17:59:33.547817

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '7fce5e7f49af'
down_revision = '5e1a65b96e72'
branch_labels = None
depends_on = None


def upgrade():
    op.create_index('uq_quarters_current', 'quarters', ['current'], unique=True, postgresql_where=sa.text('current'))


def downgrade():
    op.drop_index('uq_quarters_current', table_name='quarters')<commit_msg>Fix alembic revision<commit_after>"""Add unique constraint on quarter current

Revision ID: 7fce5e7f49af
Revises: 5e1a65b96e72
Create Date: 2018-03-10 17:59:33.547817

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '7fce5e7f49af'
down_revision = '81e54da1026b'
branch_labels = None
depends_on = None


def upgrade():
    op.create_index('uq_quarters_current', 'quarters', ['current'], unique=True, postgresql_where=sa.text('current'))


def downgrade():
    op.drop_index('uq_quarters_current', table_name='quarters')
{'fraction_non_alphanumeric': 0.11568799298860649, 'fraction_numerical': 0.0736196319018405, 'mean_word_length': 6.4640522875816995, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4943079', 'n_tokens_mistral': 459, 'n_tokens_neox': 403, 'n_words': 95}