fix migrations

This commit is contained in:
CakeAndBanana
2025-10-19 21:04:12 +02:00
parent 7cc6918b12
commit d28198a9c8

View File

@@ -16,6 +16,8 @@ namespace LightlessSyncServer.Migrations
type: "integer[]",
nullable: true);
migrationBuilder.Sql("UPDATE group_profiles SET tags = NULL;");
migrationBuilder.AlterColumn<int[]>(
name: "tags",
table: "group_profiles",
@@ -29,10 +31,12 @@ namespace LightlessSyncServer.Migrations
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "tags",
table: "user_profile_data");
migrationBuilder.AlterColumn<string>(
name: "tags",
table: "group_profiles",