From 0e5592a0d3461c81bbb03a98820ec772cf6ebe5f Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 10 Mar 2013 19:05:33 -0300 Subject: [PATCH] Move database configuration scripts. --- .../database/hsql/atest-data.sql | 0 .../database}/hsql/create-schemas.sql | 4 +- .../database}/hsql/drop-schemas.sql | 1 - .../database}/mysql/3.0beta1-to-v3.0GA.sql | 0 .../database}/mysql/create-database.sql | 0 .../database}/mysql/create-schemas.sql | 0 .../database}/mysql/drop-schemas.sql | 0 .../database}/mysql/test-data.sql | 0 .../database}/mysql/v2.0-to-v3.0.sql | 0 .../database}/postgres/create-database.sql | 0 .../database}/postgres/create-schemas.sql | 0 .../database}/postgres/drop-schemas.sql | 0 wise-webapp/pom.xml | 49 +++++-------------- 13 files changed, 13 insertions(+), 41 deletions(-) rename wise-webapp/src/test/sql/hsql/test-data.sql => config/database/hsql/atest-data.sql (100%) rename {wise-webapp/src/test/sql => config/database}/hsql/create-schemas.sql (97%) rename {wise-webapp/src/test/sql => config/database}/hsql/drop-schemas.sql (95%) rename {wise-webapp/src/test/sql => config/database}/mysql/3.0beta1-to-v3.0GA.sql (100%) rename {wise-webapp/src/test/sql => config/database}/mysql/create-database.sql (100%) rename {wise-webapp/src/test/sql => config/database}/mysql/create-schemas.sql (100%) rename {wise-webapp/src/test/sql => config/database}/mysql/drop-schemas.sql (100%) rename {wise-webapp/src/test/sql => config/database}/mysql/test-data.sql (100%) rename {wise-webapp/src/test/sql => config/database}/mysql/v2.0-to-v3.0.sql (100%) rename {wise-webapp/src/test/sql => config/database}/postgres/create-database.sql (100%) rename {wise-webapp/src/test/sql => config/database}/postgres/create-schemas.sql (100%) rename {wise-webapp/src/test/sql => config/database}/postgres/drop-schemas.sql (100%) diff --git a/wise-webapp/src/test/sql/hsql/test-data.sql b/config/database/hsql/atest-data.sql similarity index 100% rename from wise-webapp/src/test/sql/hsql/test-data.sql rename to config/database/hsql/atest-data.sql diff --git a/wise-webapp/src/test/sql/hsql/create-schemas.sql b/config/database/hsql/create-schemas.sql similarity index 97% rename from wise-webapp/src/test/sql/hsql/create-schemas.sql rename to config/database/hsql/create-schemas.sql index e80dbeaa..e2e41662 100644 --- a/wise-webapp/src/test/sql/hsql/create-schemas.sql +++ b/config/database/hsql/create-schemas.sql @@ -13,6 +13,7 @@ activation_code BIGINT NOT NULL, activation_date DATE, allow_send_email CHAR(1) NOT NULL, locale varchar(5), +auth_schema INTEGER NOT NULL, FOREIGN KEY(colaborator_id) REFERENCES COLLABORATOR(id) ); @@ -69,5 +70,4 @@ user_id INTEGER NOT NULL, login_date date ); -COMMIT; -SHUTDOWN; \ No newline at end of file +COMMIT; \ No newline at end of file diff --git a/wise-webapp/src/test/sql/hsql/drop-schemas.sql b/config/database/hsql/drop-schemas.sql similarity index 95% rename from wise-webapp/src/test/sql/hsql/drop-schemas.sql rename to config/database/hsql/drop-schemas.sql index e91e8e84..cf40ac87 100644 --- a/wise-webapp/src/test/sql/hsql/drop-schemas.sql +++ b/config/database/hsql/drop-schemas.sql @@ -7,4 +7,3 @@ DROP TABLE MINDMAP; DROP TABLE USER; DROP TABLE COLLABORATOR; COMMIT; -SHUTDOWN; \ No newline at end of file diff --git a/wise-webapp/src/test/sql/mysql/3.0beta1-to-v3.0GA.sql b/config/database/mysql/3.0beta1-to-v3.0GA.sql similarity index 100% rename from wise-webapp/src/test/sql/mysql/3.0beta1-to-v3.0GA.sql rename to config/database/mysql/3.0beta1-to-v3.0GA.sql diff --git a/wise-webapp/src/test/sql/mysql/create-database.sql b/config/database/mysql/create-database.sql similarity index 100% rename from wise-webapp/src/test/sql/mysql/create-database.sql rename to config/database/mysql/create-database.sql diff --git a/wise-webapp/src/test/sql/mysql/create-schemas.sql b/config/database/mysql/create-schemas.sql similarity index 100% rename from wise-webapp/src/test/sql/mysql/create-schemas.sql rename to config/database/mysql/create-schemas.sql diff --git a/wise-webapp/src/test/sql/mysql/drop-schemas.sql b/config/database/mysql/drop-schemas.sql similarity index 100% rename from wise-webapp/src/test/sql/mysql/drop-schemas.sql rename to config/database/mysql/drop-schemas.sql diff --git a/wise-webapp/src/test/sql/mysql/test-data.sql b/config/database/mysql/test-data.sql similarity index 100% rename from wise-webapp/src/test/sql/mysql/test-data.sql rename to config/database/mysql/test-data.sql diff --git a/wise-webapp/src/test/sql/mysql/v2.0-to-v3.0.sql b/config/database/mysql/v2.0-to-v3.0.sql similarity index 100% rename from wise-webapp/src/test/sql/mysql/v2.0-to-v3.0.sql rename to config/database/mysql/v2.0-to-v3.0.sql diff --git a/wise-webapp/src/test/sql/postgres/create-database.sql b/config/database/postgres/create-database.sql similarity index 100% rename from wise-webapp/src/test/sql/postgres/create-database.sql rename to config/database/postgres/create-database.sql diff --git a/wise-webapp/src/test/sql/postgres/create-schemas.sql b/config/database/postgres/create-schemas.sql similarity index 100% rename from wise-webapp/src/test/sql/postgres/create-schemas.sql rename to config/database/postgres/create-schemas.sql diff --git a/wise-webapp/src/test/sql/postgres/drop-schemas.sql b/config/database/postgres/drop-schemas.sql similarity index 100% rename from wise-webapp/src/test/sql/postgres/drop-schemas.sql rename to config/database/postgres/drop-schemas.sql diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml index 0bb24374..ce9834a6 100644 --- a/wise-webapp/pom.xml +++ b/wise-webapp/pom.xml @@ -83,6 +83,12 @@ ${org.springframework.version} compile + + org.springframework.security + spring-security-openid + ${org.springframework.version} + compile + org.springframework spring-beans @@ -343,50 +349,19 @@ drop-schemas - test + prepare-package execute continue - ascending + descending ${project.basedir} - src/test/sql/hsql/drop-schemas.sql - - - - - - - create-schema - test - - execute - - - ascending - - ${project.basedir} - - src/test/sql/hsql/create-schemas.sql - - - - - - create-data - test - - execute - - - ascending - - ${project.basedir} - - src/test/sql/hsql/test-data.sql + config/database/hsql/drop-schemas.sql + config/database/hsql/create-schemas.sql + config/database/hsql/test-data.sql @@ -410,8 +385,6 @@ - - maven-war-plugin 2.1.1