Adding first changelog with database creation to avoid problems with empty databases.

* Disabled Hibernate schema generation (hbm2dll). Now it just validates the schema.

FEA: ItEr65S05DatabaseUpgradeItEr64S07
This commit is contained in:
Manuel Rego Casasnovas 2010-12-09 13:04:36 +01:00
parent 00fcf6f173
commit fe9ed34c6c
4 changed files with 2171 additions and 3 deletions

File diff suppressed because it is too large Load diff

View file

@ -5,6 +5,7 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
<include file="src/main/resources/db.changelog-database.xml"/>
<include file="src/main/resources/db.changelog-initial.xml"/>
</databaseChangeLog>

View file

@ -105,7 +105,7 @@
<property name="code" access="property" not-null="true" unique="true"/>
<map name="effortPerDay">
<map name="effortPerDay" table="effort_per_day">
<key column="base_calendar_id"/>
<index column="day_id" type="integer" />
<element column="effort"

View file

@ -80,7 +80,7 @@
<hibernate.show_sql>false</hibernate.show_sql>
<hibernate.format_sql>true</hibernate.format_sql>
<hibernate.use_sql_comments>true</hibernate.use_sql_comments>
<hibernate.hbm2ddl.auto>update</hibernate.hbm2ddl.auto>
<hibernate.hbm2ddl.auto>validate</hibernate.hbm2ddl.auto>
</properties>
</profile>
@ -94,7 +94,7 @@
<hibernate.show_sql>false</hibernate.show_sql>
<hibernate.format_sql>false</hibernate.format_sql>
<hibernate.use_sql_comments>false</hibernate.use_sql_comments>
<hibernate.hbm2ddl.auto>update</hibernate.hbm2ddl.auto>
<hibernate.hbm2ddl.auto>validate</hibernate.hbm2ddl.auto>
</properties>
</profile>