This commit is contained in:
2020-12-16 15:19:40 +00:00
parent 81c88ff858
commit 4f3a2b8b80
6 changed files with 194 additions and 6 deletions

View File

@@ -541,7 +541,9 @@ $BODY$;
//PROJECT
await ExecQueryAsync("CREATE TABLE aproject (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null unique, active bool, " +
"notes text, wiki text, customfields text, tags varchar(255) ARRAY )");
"notes text, wiki text, customfields text, tags varchar(255) ARRAY, " +
"datestarted timestamp null, datecompleted timestamp null, projectoverseerid bigint null references auser(id), accountnumber text)");
await ExecQueryAsync("CREATE UNIQUE INDEX aproject_name_id_idx ON aproject (id, name);");
await ExecQueryAsync("CREATE INDEX aproject_tags ON aproject using GIN(tags)");

View File

@@ -393,6 +393,8 @@ namespace AyaNova.Util
apiServerState.ResumePriorState();
_log.LogInformation("Database erase completed");
}