This commit is contained in:
2020-10-29 22:37:26 +00:00
parent e5ee0f64aa
commit 273fa49e78
6 changed files with 43 additions and 26 deletions

View File

@@ -284,7 +284,7 @@ namespace AyaNova.Util
await cmd.ExecuteNonQueryAsync();
}
//Delete from users table
//Delete users
using (var cmd = new Npgsql.NpgsqlCommand())
{
cmd.Connection = conn;
@@ -293,6 +293,9 @@ namespace AyaNova.Util
cmd.CommandText = "ALTER SEQUENCE auser_id_seq RESTART WITH 2;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "delete from \"adashboardview\" where userid <> 1;";
await cmd.ExecuteNonQueryAsync();
}
//Delete non stock translations