mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 16:38:37 +00:00
Fix permissions screw-up with migration
This commit is contained in:
parent
89f9198a4b
commit
0b8c0cbfb4
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ namespace ProjectLighthouse.Migrations
|
|||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("UPDATE Users SET PermissionLevel = PermissionLevel - 1;");
|
||||
migrationBuilder.Sql("UPDATE Users SET PermissionLevel = -3 WHERE PermissionLevel = -1;");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Description",
|
||||
table: "Cases",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue