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-main
20
legacyworlds-server-main/data-source.sample.xml
Normal file
20
legacyworlds-server-main/data-source.sample.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Legacy Worlds Beta 6 - Default data source configuration -->
|
||||
<!--
|
||||
This file is provided as an example on how to configure the game
|
||||
server's data source.
|
||||
-->
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
||||
|
||||
<bean name="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
|
||||
destroy-method="close">
|
||||
<property name="driverClassName" value="org.postgresql.Driver" />
|
||||
<property name="url" value="jdbc:postgresql:lwb6" />
|
||||
<property name="username" value="lwb6" />
|
||||
<property name="password" value="test" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
Reference in a new issue