This commit is contained in:
@@ -181,7 +181,7 @@ namespace AyaNova.Util
|
||||
await ExecQueryAsync("CREATE TABLE auseroptions (id BIGSERIAL PRIMARY KEY, " +
|
||||
"userid bigint not null, translationid bigint not null REFERENCES atranslation (id), languageoverride text, timezoneoverride text, currencyname text, hour12 bool not null, emailaddress text, uicolor varchar(12) not null default '#000000')");
|
||||
|
||||
|
||||
|
||||
//Prime the db with the default MANAGER account
|
||||
await AyaNova.Biz.PrimeData.PrimeManagerAccount(ct);
|
||||
|
||||
@@ -454,7 +454,7 @@ namespace AyaNova.Util
|
||||
await ExecQueryAsync("CREATE UNIQUE INDEX apmtemplateitem_name_id_idx ON apmtemplateitem (id, name);");
|
||||
await ExecQueryAsync("CREATE INDEX apmtemplateitem_tags ON apmtemplateitem using GIN(tags)");
|
||||
|
||||
|
||||
|
||||
await SetSchemaLevelAsync(++currentSchema);
|
||||
}
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ namespace AyaNova.Util
|
||||
|
||||
//REMOVE ALL DATA with few exceptions of manager user, license, schema tables
|
||||
//and job logs because this is called by job code
|
||||
|
||||
|
||||
await EraseTableAsync("atranslationitem", conn);
|
||||
await EraseTableAsync("atranslation", conn);
|
||||
//Load the default TRANSLATIONS
|
||||
@@ -353,7 +353,7 @@ namespace AyaNova.Util
|
||||
using (var cmd = new Npgsql.NpgsqlCommand())
|
||||
{
|
||||
cmd.Connection = conn;
|
||||
cmd.CommandText = "TRUNCATE \"" + sTable + "\" RESTART IDENTITY CASCADE;";
|
||||
cmd.CommandText = "TRUNCATE \"" + sTable + "\" RESTART IDENTITY;";
|
||||
await cmd.ExecuteNonQueryAsync();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user