Skip to content

Commit 026e3af

Browse files
David EllingsworthDavid Ellingsworth
authored andcommitted
GH-3530: Let the SchemaExporter drop and create tables before attempting to create them manually.
1 parent 4ebc6c4 commit 026e3af

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/NHibernate.Test/NHSpecificTest/GH3530/Fixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ protected override void OnTearDown()
3838

3939
protected override void CreateSchema()
4040
{
41+
// Let the SchemaExporter drop and create tables if needed.
42+
base.CreateSchema();
43+
4144
CreateTable("Integer");
4245
CreateTable("DateTime");
4346
CreateTable("Double");
4447
CreateTable("Decimal");
45-
46-
base.CreateSchema();
4748
}
4849

4950
/// <summary>

src/NHibernate.Test/NHSpecificTest/GH3530/Mappings.hbm.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
not provide a mechanism of doing this, hence they have a
88
schema-action of 'none'.
99
-->
10-
<class name="IntegerEntity" schema-action="none">
10+
<class name="IntegerEntity" schema-action="drop">
1111
<id name="Id" generator="guid.comb" />
1212
<property name="DataValue" column="DataValue"/>
1313
</class>
14-
<class name="DateTimeEntity" schema-action="none">
14+
<class name="DateTimeEntity" schema-action="drop">
1515
<id name="Id" generator="guid.comb" />
1616
<property name="DataValue" column="DataValue"/>
1717
</class>
18-
<class name="DoubleEntity" schema-action="none">
18+
<class name="DoubleEntity" schema-action="drop">
1919
<id name="Id" generator="guid.comb" />
2020
<property name="DataValue" column="DataValue"/>
2121
</class>
22-
<class name="DecimalEntity" schema-action="none">
22+
<class name="DecimalEntity" schema-action="drop">
2323
<id name="Id" generator="guid.comb" />
2424
<property name="DataValue" column="DataValue"/>
2525
</class>

0 commit comments

Comments
 (0)