This commit is contained in:
2020-05-02 19:24:47 +00:00
parent 9df1252cd6
commit 64f4314015
7 changed files with 52 additions and 10 deletions

View File

@@ -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();
}
}