Database management changes
* Added in-base logging through a foreign data wrapper, which is only possible using PostgreSQL 9.1 * Renamed database-related configuration files to indicate that they are samples, and added the "real" names to the Git ignore list. Server distribution modified accordingly. * Removed PL/PgSQL registration (it was only necessary on 8.4) * Added pgTAP SQL definitions and a script which will (hopefully) be executed by the build system after the main Java build in order to execute database unit tests. The script supports both admin- and user- level testing. I also added a few tests to make sure the testing framework actually runs them. * Added documentation about the database definitions structure
This commit is contained in:
parent
f682594cbd
commit
be3106c463
18 changed files with 7669 additions and 47 deletions
legacyworlds-server-DIST/src
|
@ -46,13 +46,9 @@
|
|||
<directory>../legacyworlds-server-data/db-structure</directory>
|
||||
<outputDirectory>sql</outputDirectory>
|
||||
<includes>
|
||||
<include>*.sql</include>
|
||||
<include>*/*.sql</include>
|
||||
<include>*/*/*.sql</include>
|
||||
<include>**.sql</include>
|
||||
<include>db-config.sample.txt</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>*.txt</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
|
||||
<!-- Default data -->
|
||||
|
@ -71,21 +67,12 @@
|
|||
|
||||
<!-- Data source configuration -->
|
||||
<file>
|
||||
<source>../legacyworlds-server-main/data-source.xml</source>
|
||||
<destName>data-source.sample.xml</destName>
|
||||
<source>../legacyworlds-server-main/data-source.sample.xml</source>
|
||||
<fileMode>0600</fileMode>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
</file>
|
||||
|
||||
<!-- Database definition variables -->
|
||||
<file>
|
||||
<source>../legacyworlds-server-data/db-structure/db-config.txt</source>
|
||||
<destName>db-config.sample.txt</destName>
|
||||
<fileMode>0600</fileMode>
|
||||
<outputDirectory>sql</outputDirectory>
|
||||
</file>
|
||||
|
||||
</files>
|
||||
|
||||
|
||||
</assembly>
|
||||
</assembly>
|
||||
|
|
Reference in a new issue