<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
    http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
    <changeSet author="kaida.masaki" id="20171005-add-column-map-geo-modifiers.xml">
        <sql>
            CREATE TABLE column_map_geo_modifiers (
              copy_system_id BIGINT NOT NULL,
              column_system_id BIGINT NOT NULL,
              zoom_level SMALLINT NOT NULL,
            FOREIGN KEY (copy_system_id, column_system_id) REFERENCES column_map(copy_system_id, system_id),
            PRIMARY KEY (copy_system_id, column_system_id)
            )
        </sql>
        <rollback>
            DROP TABLE column_map_geo_modifiers;
        </rollback>
    </changeSet>
</databaseChangeLog>

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
    http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
    <changeSet author="kaida.masaki" id="20171009-add-column-map-geo-modifiers.xml">
        <sql>
            CREATE TABLE column_map_geo_modifiers (
              copy_system_id BIGINT NOT NULL,
              column_system_id BIGINT NOT NULL,
              zoom_level SMALLINT NOT NULL,
            FOREIGN KEY (copy_system_id, column_system_id) REFERENCES column_map(copy_system_id, system_id),
            PRIMARY KEY (copy_system_id, column_system_id, zoom_level)
            )
        </sql>
        <rollback>
            DROP TABLE column_map_geo_modifiers;
        </rollback>
    </changeSet>
</databaseChangeLog>

Fix primary key in migration
Fix primary key in migration
