From c0d4dac2b300b1e7c9eb3e03b11692b0c0e9feab Mon Sep 17 00:00:00 2001 From: Robin Bygrave Date: Fri, 7 Aug 2015 13:26:35 +1200 Subject: [PATCH] #374 - Update example/sample xml for xml schema changes --- .../resources/container/test-create-table.xml | 4 +- src/test/resources/dbmigration/app1/v1.0.xml | 60 +++++++++++++++++++ .../app1/{migration-1.xml => v1.1.xml} | 9 ++- src/test/resources/dbmigration/app1/v10.0.xml | 53 ++++++++++++++++ .../app1/{migration-2.xml => v2.0.xml} | 6 +- src/test/resources/dbmigration/app1/v9.0.xml | 55 +++++++++++++++++ src/test/resources/dbmigration/myapp/v1.0.xml | 18 ++++++ src/test/resources/dbmigration/myapp/v2.0.xml | 40 +++++++++++++ 8 files changed, 240 insertions(+), 5 deletions(-) create mode 100644 src/test/resources/dbmigration/app1/v1.0.xml rename src/test/resources/dbmigration/app1/{migration-1.xml => v1.1.xml} (96%) create mode 100644 src/test/resources/dbmigration/app1/v10.0.xml rename src/test/resources/dbmigration/app1/{migration-2.xml => v2.0.xml} (94%) create mode 100644 src/test/resources/dbmigration/app1/v9.0.xml create mode 100644 src/test/resources/dbmigration/myapp/v1.0.xml create mode 100644 src/test/resources/dbmigration/myapp/v2.0.xml diff --git a/src/test/resources/container/test-create-table.xml b/src/test/resources/container/test-create-table.xml index d1f2a57ee..b8570a370 100644 --- a/src/test/resources/container/test-create-table.xml +++ b/src/test/resources/container/test-create-table.xml @@ -2,9 +2,9 @@ - + - + diff --git a/src/test/resources/dbmigration/app1/v1.0.xml b/src/test/resources/dbmigration/app1/v1.0.xml new file mode 100644 index 000000000..2430f2933 --- /dev/null +++ b/src/test/resources/dbmigration/app1/v1.0.xml @@ -0,0 +1,60 @@ + + + + + + + + create table foo; + + + drop table if exists foo; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/dbmigration/app1/migration-1.xml b/src/test/resources/dbmigration/app1/v1.1.xml similarity index 96% rename from src/test/resources/dbmigration/app1/migration-1.xml rename to src/test/resources/dbmigration/app1/v1.1.xml index dab87837e..ee8e19b74 100644 --- a/src/test/resources/dbmigration/app1/migration-1.xml +++ b/src/test/resources/dbmigration/app1/v1.1.xml @@ -2,7 +2,7 @@ - + @@ -44,7 +44,6 @@ - @@ -52,4 +51,10 @@ + + + + + + \ No newline at end of file diff --git a/src/test/resources/dbmigration/app1/v10.0.xml b/src/test/resources/dbmigration/app1/v10.0.xml new file mode 100644 index 000000000..382686d17 --- /dev/null +++ b/src/test/resources/dbmigration/app1/v10.0.xml @@ -0,0 +1,53 @@ + + + + + + + + create table foo; + + + drop table if exists foo; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/dbmigration/app1/migration-2.xml b/src/test/resources/dbmigration/app1/v2.0.xml similarity index 94% rename from src/test/resources/dbmigration/app1/migration-2.xml rename to src/test/resources/dbmigration/app1/v2.0.xml index e5c9d91c5..800f3c876 100644 --- a/src/test/resources/dbmigration/app1/migration-2.xml +++ b/src/test/resources/dbmigration/app1/v2.0.xml @@ -2,7 +2,7 @@ - + @@ -48,4 +48,8 @@ + + + + \ No newline at end of file diff --git a/src/test/resources/dbmigration/app1/v9.0.xml b/src/test/resources/dbmigration/app1/v9.0.xml new file mode 100644 index 000000000..800f3c876 --- /dev/null +++ b/src/test/resources/dbmigration/app1/v9.0.xml @@ -0,0 +1,55 @@ + + + + + + + + create table foo; + + + drop table if exists foo; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/dbmigration/myapp/v1.0.xml b/src/test/resources/dbmigration/myapp/v1.0.xml new file mode 100644 index 000000000..cd7cea05f --- /dev/null +++ b/src/test/resources/dbmigration/myapp/v1.0.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/dbmigration/myapp/v2.0.xml b/src/test/resources/dbmigration/myapp/v2.0.xml new file mode 100644 index 000000000..e03676896 --- /dev/null +++ b/src/test/resources/dbmigration/myapp/v2.0.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +