This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user