Anonymous avatar Anonymous committed 2013055

Change ordering of drops (USER-51)

Comments (0)

Files changed (2)

src/etc/jdbc/mckoi.sql

+DROP TABLE IF EXISTS OS_MEMBERSHIP;
 DROP TABLE IF EXISTS OS_USER;
 DROP TABLE IF EXISTS OS_GROUP;
-DROP TABLE IF EXISTS OS_MEMBERSHIP;
 DROP TABLE IF EXISTS OS_PROPERTYENTRY;
 
 CREATE TABLE OS_USER
 
 CREATE TABLE OS_GROUP
 (
-    GROUPNAME varchar(128)   
+    GROUPNAME varchar(128)
 );
 
 CREATE TABLE OS_MEMBERSHIP
     GROUPNAME varchar(128),
     primary key (USERNAME, GROUPNAME),
     foreign key (USERNAME) references OS_USER(USERNAME),
-    foreign key (GROUPNAME) references OS_GROUP(GROUPNAME)    
+    foreign key (GROUPNAME) references OS_GROUP(GROUPNAME)
 );
 
-CREATE TABLE OS_PROPERTYENTRY 
+CREATE TABLE OS_PROPERTYENTRY
 (
-  GLOBAL_KEY varchar(255), 
-  ITEM_KEY varchar(255), 
-  ITEM_TYPE smallint, 
-  STRING_VALUE varchar(255), 
-  DATE_VALUE TIMESTAMP , 
-  DATA_VALUE varbinary(2000), 
-  FLOAT_VALUE float, 
-  NUMBER_VALUE numeric, 
+  GLOBAL_KEY varchar(255),
+  ITEM_KEY varchar(255),
+  ITEM_TYPE smallint,
+  STRING_VALUE varchar(255),
+  DATE_VALUE TIMESTAMP ,
+  DATA_VALUE varbinary(2000),
+  FLOAT_VALUE float,
+  NUMBER_VALUE numeric,
   primary key (GLOBAL_KEY, ITEM_KEY)
 );
 

src/test/scripts/mckoi.sql

+DROP TABLE IF EXISTS OS_MEMBERSHIP;
 DROP TABLE IF EXISTS OS_USER;
 DROP TABLE IF EXISTS OS_GROUP;
-DROP TABLE IF EXISTS OS_MEMBERSHIP;
 DROP TABLE IF EXISTS OS_PROPERTYENTRY;
 
 CREATE TABLE OS_USER
 
 CREATE TABLE OS_GROUP
 (
-    GROUPNAME varchar(128)   
+    GROUPNAME varchar(128)
 );
 
 CREATE TABLE OS_MEMBERSHIP
     GROUPNAME varchar(128),
     primary key (USERNAME, GROUPNAME),
     foreign key (USERNAME) references OS_USER(USERNAME),
-    foreign key (GROUPNAME) references OS_GROUP(GROUPNAME)    
+    foreign key (GROUPNAME) references OS_GROUP(GROUPNAME)
 );
 
-CREATE TABLE OS_PROPERTYENTRY 
+CREATE TABLE OS_PROPERTYENTRY
 (
-  GLOBAL_KEY varchar(255), 
-  ITEM_KEY varchar(255), 
-  ITEM_TYPE smallint, 
-  STRING_VALUE varchar(255), 
-  DATE_VALUE TIMESTAMP , 
-  DATA_VALUE varbinary(2000), 
-  FLOAT_VALUE float, 
-  NUMBER_VALUE numeric, 
+  GLOBAL_KEY varchar(255),
+  ITEM_KEY varchar(255),
+  ITEM_TYPE smallint,
+  STRING_VALUE varchar(255),
+  DATE_VALUE TIMESTAMP ,
+  DATA_VALUE varbinary(2000),
+  FLOAT_VALUE float,
+  NUMBER_VALUE numeric,
   primary key (GLOBAL_KEY, ITEM_KEY)
 );
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.