"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cloudkitty/rating/hash/db/sqlalchemy/alembic/versions/54cc17accf2c_fixed_constraint_name.py" between
cloudkitty-12.1.0.tar.gz and cloudkitty-13.0.0.tar.gz

About: OpenStack CloudKitty provides Rating-as-a-Service for OpenStack.
The "Victoria" series (latest release).

54cc17accf2c_fixed_constraint_name.py  (cloudkitty-12.1.0):54cc17accf2c_fixed_constraint_name.py  (cloudkitty-13.0.0)
skipping to change at line 26 skipping to change at line 26
Revision ID: 54cc17accf2c Revision ID: 54cc17accf2c
Revises: 4fa888fd7eda Revises: 4fa888fd7eda
Create Date: 2015-05-28 16:44:32.936076 Create Date: 2015-05-28 16:44:32.936076
""" """
# revision identifiers, used by Alembic. # revision identifiers, used by Alembic.
revision = '54cc17accf2c' revision = '54cc17accf2c'
down_revision = '4fa888fd7eda' down_revision = '4fa888fd7eda'
from alembic import op from alembic import op # noqa: E402
import sqlalchemy as sa import sqlalchemy as sa # noqa: E402
def create_table(is_old=False): def create_table(is_old=False):
if is_old: if is_old:
constraints = ['uniq_field_mapping', 'uniq_service_mapping'] constraints = ['uniq_field_mapping', 'uniq_service_mapping']
else: else:
constraints = ['uniq_field_threshold', 'uniq_service_threshold'] constraints = ['uniq_field_threshold', 'uniq_service_threshold']
table = op.create_table( table = op.create_table(
'tmig_hashmap_thresholds', 'tmig_hashmap_thresholds',
sa.Column('id', sa.Integer(), nullable=False), sa.Column('id', sa.Integer(), nullable=False),
sa.Column('threshold_id', sa.String(length=36), nullable=False), sa.Column('threshold_id', sa.String(length=36), nullable=False),
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)