diff --git a/migrations/versions/20170209144136_create_organisations_clusters_table.py b/migrations/versions/20170209144136_create_organisations_clusters_table.py new file mode 100644 index 0000000..2cba309 --- /dev/null +++ b/migrations/versions/20170209144136_create_organisations_clusters_table.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function +from __future__ import unicode_literals + +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'db02d759783f' +down_revision = u'f35805a0a00f' +branch_labels = None +depends_on = None + + +def upgrade(): + op.create_table('organisation_clusters', + + sa.Column('canonical', sa.Text), + sa.Column('variations', sa.ARRAY(sa.Text)), + + ) + + +def downgrade(): + op.drop_table('organisation_clusters')