This commit is contained in:
2020-04-28 23:19:33 +00:00
parent 9b3a0e3142
commit f6f36c8257
2 changed files with 8 additions and 0 deletions

View File

@@ -273,6 +273,9 @@ namespace AyaNova.Util
cmd.Connection = conn;
cmd.CommandText = "delete from \"auseroptions\" where UserId <> 1;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "ALTER SEQUENCE auseroptions_id_seq RESTART WITH 2;";
await cmd.ExecuteNonQueryAsync();
}
//Delete from users table
@@ -281,6 +284,9 @@ namespace AyaNova.Util
cmd.Connection = conn;
cmd.CommandText = "delete from \"auser\" where id <> 1;";
await cmd.ExecuteNonQueryAsync();
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