diff --git a/Schema/anotherchangelog.sql b/Schema/anotherchangelog.sql new file mode 100644 index 0000000000000000000000000000000000000000..d729a8ba07e93c871aeee0b6131941ca0498e365 --- /dev/null +++ b/Schema/anotherchangelog.sql @@ -0,0 +1,39 @@ +-- liquibase formatted sql +-- changeset guox.goodrain:1 +create table another_person ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table another_person; +-- changeset guox.goodrain:2 +create table another_company ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table another_company; +-- changeset other.goodrain:3 +alter table another_person add column country varchar(2); +create table another_staff ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table another_staff; +-- rollback alter table another_person drop column country; +-- changeset other.goodrain:4 +create table another_man ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table another_man; \ No newline at end of file diff --git a/Schema/anotherdb.properties b/Schema/anotherdb.properties new file mode 100644 index 0000000000000000000000000000000000000000..45445586c690a31a612fd07556f7ace091f07d57 --- /dev/null +++ b/Schema/anotherdb.properties @@ -0,0 +1,6 @@ +driver=com.mysql.cj.jdbc.Driver +url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/anotherdb?createDatabaseIfNotExist=true&characterEncoding=utf8 +username=root +password=${MYSQL_ROOT_PASSWORD} +changeLogFile=anotherchangelog.sql +liquibase.hub.mode=off \ No newline at end of file diff --git a/Schema/changelog.sql b/Schema/changelog.sql new file mode 100644 index 0000000000000000000000000000000000000000..fd6e02ebf0cba465a7932d6a32a0252dbd78eab7 --- /dev/null +++ b/Schema/changelog.sql @@ -0,0 +1,39 @@ +-- liquibase formatted sql +-- changeset guox.goodrain:1 +create table person ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table person; +-- changeset guox.goodrain:2 +create table company ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table company; +-- changeset other.goodrain:3 +alter table person add column country varchar(2); +create table staff ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table staff; +-- rollback alter table person drop column country; +-- changeset other.goodrain:4 +create table man ( +id int primary key, +name varchar(50) not null, +address1 varchar(50), +address2 varchar(50), +city varchar(30) +); +-- rollback drop table man; \ No newline at end of file diff --git a/Schema/mysql.properties b/Schema/mysql.properties new file mode 100644 index 0000000000000000000000000000000000000000..9312bb76d92e32b419cb146d9a7851357cdfb7a9 --- /dev/null +++ b/Schema/mysql.properties @@ -0,0 +1,6 @@ +driver=com.mysql.cj.jdbc.Driver +url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?createDatabaseIfNotExist=true&characterEncoding=utf8 +username=root +password=${MYSQL_ROOT_PASSWORD} +changeLogFile=changelog.sql +liquibase.hub.mode=off \ No newline at end of file