File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
src/NHibernate.Test/NHSpecificTest/GH3530 Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,12 @@ protected override void OnTearDown()
38
38
39
39
protected override void CreateSchema ( )
40
40
{
41
- // Let the SchemaExporter drop and create tables if needed.
42
- base . CreateSchema ( ) ;
43
-
44
41
CreateTable ( "Integer" ) ;
45
42
CreateTable ( "DateTime" ) ;
46
43
CreateTable ( "Double" ) ;
47
44
CreateTable ( "Decimal" ) ;
45
+
46
+ base . CreateSchema ( ) ;
48
47
}
49
48
50
49
/// <summary>
@@ -83,6 +82,10 @@ private void CreateTable(string name)
83
82
cmd . ExecuteNonQuery ( ) ;
84
83
}
85
84
}
85
+ catch ( Exception ex )
86
+ {
87
+ Assert . Warn ( $ "Creating the schema failed, assuming it already exists. { ex } ") ;
88
+ }
86
89
finally
87
90
{
88
91
Sfi . ConnectionProvider . CloseConnection ( cn ) ;
Original file line number Diff line number Diff line change 7
7
not provide a mechanism of doing this, hence they have a
8
8
schema-action of 'none'.
9
9
-->
10
- <class name =" IntegerEntity" schema-action =" drop " >
10
+ <class name =" IntegerEntity" schema-action =" none " >
11
11
<id name =" Id" generator =" guid.comb" />
12
12
<property name =" DataValue" column =" DataValue" />
13
13
</class >
14
- <class name =" DateTimeEntity" schema-action =" drop " >
14
+ <class name =" DateTimeEntity" schema-action =" none " >
15
15
<id name =" Id" generator =" guid.comb" />
16
16
<property name =" DataValue" column =" DataValue" />
17
17
</class >
18
- <class name =" DoubleEntity" schema-action =" drop " >
18
+ <class name =" DoubleEntity" schema-action =" none " >
19
19
<id name =" Id" generator =" guid.comb" />
20
20
<property name =" DataValue" column =" DataValue" />
21
21
</class >
22
- <class name =" DecimalEntity" schema-action =" drop " >
22
+ <class name =" DecimalEntity" schema-action =" none " >
23
23
<id name =" Id" generator =" guid.comb" />
24
24
<property name =" DataValue" column =" DataValue" />
25
25
</class >
You can’t perform that action at this time.
0 commit comments