This commit is contained in:
2021-01-13 01:12:30 +00:00
parent e0d8aaf8c7
commit 2cf173a663
2 changed files with 3 additions and 3 deletions

View File

@@ -684,7 +684,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
"notes text, wiki text, customfields text, tags varchar(255) ARRAY, " +
"partnumber text not null unique, popupnotes text, manufacturerid bigint REFERENCES avendor, manufacturernumber text, "+
"wholesalerid bigint REFERENCES avendor, wholesalernumber text, alternativewholesalerid bigint REFERENCES avendor, alternativewholesalernumber text, " +
"cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasureid REFERENCES aunitofmeasure, upc text, trackserialnumber bool not null " +
"cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasure text, upc text, trackserialnumber bool not null " +
" )");
await ExecQueryAsync("CREATE UNIQUE INDEX apart_name_id_idx ON apart (id, name);");
await ExecQueryAsync("CREATE INDEX apart_tags ON apart using GIN(tags)");