Move database configuration scripts.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-10 19:05:33 -03:00
parent 52efdf729b
commit 0e5592a0d3
13 changed files with 13 additions and 41 deletions

View File

@ -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;
COMMIT;

View File

@ -7,4 +7,3 @@ DROP TABLE MINDMAP;
DROP TABLE USER;
DROP TABLE COLLABORATOR;
COMMIT;
SHUTDOWN;

View File

@ -83,6 +83,12 @@
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-openid</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
@ -343,50 +349,19 @@
<executions>
<execution>
<id>drop-schemas</id>
<phase>test</phase>
<phase>prepare-package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<onError>continue</onError>
<orderFile>ascending</orderFile>
<orderFile>descending</orderFile>
<fileset>
<basedir>${project.basedir}</basedir>
<includes>
<include>src/test/sql/hsql/drop-schemas.sql</include>
</includes>
</fileset>
</configuration>
</execution>
<execution>
<id>create-schema</id>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<orderFile>ascending</orderFile>
<fileset>
<basedir>${project.basedir}</basedir>
<includes>
<include>src/test/sql/hsql/create-schemas.sql</include>
</includes>
</fileset>
</configuration>
</execution>
<execution>
<id>create-data</id>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<orderFile>ascending</orderFile>
<fileset>
<basedir>${project.basedir}</basedir>
<includes>
<include>src/test/sql/hsql/test-data.sql</include>
<include>config/database/hsql/drop-schemas.sql</include>
<include>config/database/hsql/create-schemas.sql</include>
<include>config/database/hsql/test-data.sql</include>
</includes>
</fileset>
</configuration>
@ -410,8 +385,6 @@
</includes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>