Browse Source

[spod] Tests: Delete table if already exists

Cauê Waneck 10 years ago
parent
commit
156f624105
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/unit/src/unit/TestSpod.hx

+ 2 - 0
tests/unit/src/unit/TestSpod.hx

@@ -22,6 +22,8 @@ class TestSpod extends Test
 		try cnx.request('DROP TABLE MySpodClass') catch(e:Dynamic) {}
 		try cnx.request('DROP TABLE OtherSpodClass') catch(e:Dynamic) {}
 		try cnx.request('DROP TABLE NullableSpodClass') catch(e:Dynamic) {}
+		try cnx.request('DROP TABLE ClassWithStringId') catch(e:Dynamic) {}
+		try cnx.request('DROP TABLE ClassWithStringIdRef') catch(e:Dynamic) {}
 		TableCreate.create(MySpodClass.manager);
 		TableCreate.create(OtherSpodClass.manager);
 		TableCreate.create(NullableSpodClass.manager);