mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Fix play permission migration not behing applied
This commit is contained in:
parent
346750931d
commit
1ba03ba909
@ -44,11 +44,6 @@ namespace Kyoo.Postgresql.Migrations
|
|||||||
principalColumn: "id",
|
principalColumn: "id",
|
||||||
onDelete: ReferentialAction.SetNull
|
onDelete: ReferentialAction.SetNull
|
||||||
);
|
);
|
||||||
|
|
||||||
// language=PostgreSQL
|
|
||||||
migrationBuilder.Sql(
|
|
||||||
"update users set permissions = ARRAY_APPEND(permissions, 'overall.play');"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
1309
back/src/Kyoo.Postgresql/Migrations/20240219170615_AddPlayPermission.Designer.cs
generated
Normal file
1309
back/src/Kyoo.Postgresql/Migrations/20240219170615_AddPlayPermission.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Kyoo.Postgresql.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddPlayPermission : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
// language=PostgreSQL
|
||||||
|
migrationBuilder.Sql(
|
||||||
|
"update users set permissions = ARRAY_APPEND(permissions, 'overall.play');"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder) { }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user