This commit is contained in:
@@ -836,6 +836,10 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
await ExecQueryAsync("CREATE TABLE aworkorder (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial BIGINT GENERATED BY DEFAULT AS IDENTITY NOT NULL, active BOOL NOT NULL, "
|
||||
+ "notes TEXT, wiki TEXT, customfields TEXT, tags VARCHAR(255) ARRAY )");
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE aworkorderstate (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, workorderid BIGINT NOT NULL REFERENCES aworkorder (id), "
|
||||
+ "workorderstatusid BIGINT NOT NULL REFERENCES aworkorderstatus (id), created TIMESTAMP NOT NULL, userid BIGINT NOT NULL REFERENCES auser (id)"
|
||||
+")");
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE aworkorderitem (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, workorderid BIGINT NOT NULL REFERENCES aworkorder (id), "
|
||||
+ "notes TEXT, wiki TEXT, customfields TEXT, tags VARCHAR(255) ARRAY )");
|
||||
|
||||
|
||||
@@ -387,6 +387,7 @@ namespace AyaNova.Util
|
||||
await EraseTableAsync("aworkorderitemunit", conn);
|
||||
//---
|
||||
await EraseTableAsync("aworkorderitem", conn);
|
||||
await EraseTableAsync("aworkorderstate", conn);
|
||||
await EraseTableAsync("aworkorder", conn);
|
||||
await EraseTableAsync("aworkordertemplateitem", conn);
|
||||
await EraseTableAsync("aworkordertemplate", conn);
|
||||
|
||||
Reference in New Issue
Block a user