This commit is contained in:
@@ -358,7 +358,7 @@ BEGIN
|
||||
when 29 then aytable = 'aquotetemplate';
|
||||
when 30 then aytable = 'aquotetemplateitem';
|
||||
when 31 then aytable = 'aunit';
|
||||
when 32 then aytable = 'aunitmodel';
|
||||
when 32 then aytable = 'aunitmodel'; aynamecolumn = 'number';
|
||||
when 33 then aytable = 'avendor';
|
||||
when 34 then aytable = 'aworkorder'; aynamecolumn ='serial';
|
||||
when 35 then return 'LT:WorkOrderItem';
|
||||
@@ -712,8 +712,11 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
await ExecQueryAsync("CREATE INDEX aunit_tags ON aunit using GIN(tags)");
|
||||
|
||||
//UNITMODEL
|
||||
await ExecQueryAsync("CREATE TABLE aunitmodel (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 )");
|
||||
await ExecQueryAsync("CREATE TABLE aunitmodel (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text null, active bool, " +
|
||||
"notes text, wiki text, customfields text, tags varchar(255) ARRAY, "+
|
||||
"number text not null, vendorid bigint null references avendor(id), upc text null, lifetimewarranty bool not null, introduceddate timestamp null, " +
|
||||
"discontinued bool not null, discontinueddate timestamp null, warrantylength integer null, warrantyterms text null " +
|
||||
")");
|
||||
await ExecQueryAsync("CREATE UNIQUE INDEX aunitmodel_name_id_idx ON aunitmodel (id, name);");
|
||||
await ExecQueryAsync("CREATE INDEX aunitmodel_tags ON aunitmodel using GIN(tags)");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user