aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Migrations/20241009231912_FixedStreamType.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server.Implementations/Migrations/20241009231912_FixedStreamType.cs')
-rw-r--r--Jellyfin.Server.Implementations/Migrations/20241009231912_FixedStreamType.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Jellyfin.Server.Implementations/Migrations/20241009231912_FixedStreamType.cs b/Jellyfin.Server.Implementations/Migrations/20241009231912_FixedStreamType.cs
new file mode 100644
index 0000000000..57b8804298
--- /dev/null
+++ b/Jellyfin.Server.Implementations/Migrations/20241009231912_FixedStreamType.cs
@@ -0,0 +1,36 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Jellyfin.Server.Implementations.Migrations
+{
+ /// <inheritdoc />
+ public partial class FixedStreamType : Migration
+ {
+ /// <inheritdoc />
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterColumn<int>(
+ name: "StreamType",
+ table: "MediaStreamInfos",
+ type: "INTEGER",
+ nullable: true,
+ oldClrType: typeof(string),
+ oldType: "TEXT",
+ oldNullable: true);
+ }
+
+ /// <inheritdoc />
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterColumn<string>(
+ name: "StreamType",
+ table: "MediaStreamInfos",
+ type: "TEXT",
+ nullable: true,
+ oldClrType: typeof(int),
+ oldType: "INTEGER",
+ oldNullable: true);
+ }
+ }
+}