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, activation_date DATE,
allow_send_email CHAR(1) NOT NULL, allow_send_email CHAR(1) NOT NULL,
locale varchar(5), locale varchar(5),
auth_schema INTEGER NOT NULL,
FOREIGN KEY(colaborator_id) REFERENCES COLLABORATOR(id) FOREIGN KEY(colaborator_id) REFERENCES COLLABORATOR(id)
); );
@ -69,5 +70,4 @@ user_id INTEGER NOT NULL,
login_date date login_date date
); );
COMMIT; COMMIT;
SHUTDOWN;

View File

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

View File

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