This commit is contained in:
2020-04-30 20:42:51 +00:00
parent adf0924357
commit 7341875bfc
5 changed files with 9 additions and 5 deletions

View File

@@ -285,12 +285,20 @@ namespace AyaNova.Util
cmd.CommandText = "delete from \"auser\" where id <> 1;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "ALTER SEQUENCE auser_id_seq RESTART WITH 2;";
cmd.CommandText = "ALTER SEQUENCE auser_id_seq RESTART WITH 2;";
await cmd.ExecuteNonQueryAsync();
}
//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
await AyaNova.Biz.PrimeData.PrimeTranslations();
await EraseTableAsync("afileattachment", conn);
await EraseTableAsync("awidget", conn);
await EraseTableAsync("aevent", conn);