--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">
+ <changeSet author="gustavo (generated)" id="1424631556445-1">
+ <createTable tableName="ad">
+ <column autoIncrement="true" name="id" type="BIGINT">
+ <constraints primaryKey="true"/>
+ </column>
+ <column name="company_id" type="BIGINT"/>
+ <column name="company_categ_id" type="BIGINT"/>
+ <column name="ad_gps" type="BLOB"/>
+ <column name="ad_mobile_image" type="VARCHAR(255)"/>
+ <column defaultValueComputed="CURRENT_TIMESTAMP" name="created_at" type="TIMESTAMP">
+ <constraints nullable="false"/>
+ </column>
+ <column defaultValue="0000-00-00 00:00:00" name="updated_at" type="TIMESTAMP">
+ <constraints nullable="false"/>
+ </column>
+ </createTable>
+ <!--
+ You do not need this if you created your schema with the right charset and collation (because
+ it is inherited from schema to tables and rows) anyhow this is just an example of what you can do.
+ -->
+ <modifySql dbms="mysql">
+ <append value="ENGINE=InnoDB, DEFAULT CHARSET=utf8, COLLATE=utf8_unicode_ci"/>
+ </modifySql>
+ </changeSet>
+ <changeSet author="gustavo (generated)" id="1424631556445-2">
+ <createTable tableName="ad_description">
+ <column autoIncrement="true" name="id" type="BIGINT">
+ <constraints primaryKey="true"/>
+ </column>
+ <column name="laguage_id" type="BIGINT">
+ <constraints nullable="false"/>
+ </column>
+ <column name="ad_id" type="BIGINT">
+ <constraints nullable="false"/>
+ </column>
+ <column name="ad_name" type="VARCHAR(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="ad_description" type="LONGTEXT"/>
+ <column name="ad_mobile_text" type="VARCHAR(500)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="ad_link" type="VARCHAR(3000)">
+ <constraints nullable="false"/>
+ </column>
+ </createTable>
+ <!--
+ You do not need this if you created your schema with the right charset and collation (because
+ it is inherited from schema to tables and rows) anyhow this is just an example of what you can do.
+ -->
+ <modifySql dbms="mysql">
+ <append value="ENGINE=InnoDB, DEFAULT CHARSET=utf8, COLLATE=utf8_unicode_ci"/>
+ </modifySql>
+ </changeSet>
+ <changeSet author="gustavo (generated)" id="1424631556445-3">
+ <addUniqueConstraint columnNames="id" constraintName="id" deferrable="false" disabled="false" initiallyDeferred="false" tableName="ad"/>
+ </changeSet>
+ <changeSet author="gustavo (generated)" id="1424631556445-4">
+ <addForeignKeyConstraint baseColumnNames="ad_id" baseTableName="ad_description" constraintName="ad_description_ibfk_1" deferrable="false" initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="ad"/>
+ </changeSet>
+</databaseChangeLog>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" 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-3.3.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
+ <changeSet author="gustavo (generated)" id="1424628789069-1">
+ <insert tableName="ad">
+ <column name="id" valueNumeric="1"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="bild.jpg"/>
+ <column name="created_at" valueDate="2014-12-17 23:27:36.0"/>
+ <column name="updated_at" valueDate="2014-12-17 23:27:36.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="2"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="bild.jpg"/>
+ <column name="created_at" valueDate="2014-12-17 23:29:10.0"/>
+ <column name="updated_at" valueDate="2014-12-17 23:29:10.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="3"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 17:13:46.0"/>
+ <column name="updated_at" valueDate="2014-12-27 17:13:47.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="4"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 17:14:39.0"/>
+ <column name="updated_at" valueDate="2014-12-27 17:15:27.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="5"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:38:47.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:38:47.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="6"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:39:53.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:39:53.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="7"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:39:54.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:39:54.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="8"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:40:21.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:40:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="9"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:40:21.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:40:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="10"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:42:34.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:42:34.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="11"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-27 23:42:34.0"/>
+ <column name="updated_at" valueDate="2014-12-27 23:42:34.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="12"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:07:34.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:07:34.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="13"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:07:35.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:07:35.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="14"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:20.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:20.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="15"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:21.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="16"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:21.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="17"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:21.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="18"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:21.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="19"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:21.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="20"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:10:21.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:10:21.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="21"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:19:06.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:19:06.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="23"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:20:08.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:20:08.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="25"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:31:11.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:31:11.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="26"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:31:12.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:31:12.0"/>
+ </insert>
+ <insert tableName="ad">
+ <column name="id" valueNumeric="27"/>
+ <column name="company_id" valueNumeric="2"/>
+ <column name="company_categ_id" valueNumeric="200"/>
+ <column name="ad_gps"/>
+ <column name="ad_mobile_image" value="mobileImage.jpg"/>
+ <column name="created_at" valueDate="2014-12-28 00:31:12.0"/>
+ <column name="updated_at" valueDate="2014-12-28 00:31:12.0"/>
+ </insert>
+ </changeSet>
+</databaseChangeLog>