This commit is contained in:
2021-01-05 18:00:12 +00:00
parent 80fa611ace
commit 3e9e660fbb

View File

@@ -681,8 +681,8 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
//LOANUNIT //LOANUNIT
await ExecQueryAsync("CREATE TABLE aloanunit (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null unique, active bool, " + await ExecQueryAsync("CREATE TABLE aloanunit (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 " +
"serial text, workorderitemloanid null references aworkorderitemloan(id), ratehour decimal(19,4) not null, " + "serial text, workorderitemloanid null references aworkorderitemloan(id), " +
"ratehour decimal(19,4) not null, ratehour decimal(19,4) not null, ratehour decimal(19,4) not null, ratehour decimal(19,4) not null, ratehour decimal(19,4) not null," "ratehour decimal(19,4) not null, ratehalfday decimal(19,4) not null, rateday decimal(19,4) not null, rateweek decimal(19,4) not null, ratemonth decimal(19,4) not null, rateyear decimal(19,4) not null " +
")"); ")");
await ExecQueryAsync("CREATE UNIQUE INDEX aloanunit_name_id_idx ON aloanunit (id, name);"); await ExecQueryAsync("CREATE UNIQUE INDEX aloanunit_name_id_idx ON aloanunit (id, name);");