summaryrefslogtreecommitdiff
path: root/src/marlin.web/Migrations/20260905104308_BlobNowBinary.cs
blob: 493e6989daeecd7cc556a005fd8a93a8b8a6c943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace marlin.web.Migrations
{
    /// <inheritdoc />
    public partial class BlobNowBinary : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "content",
                table: "source_blobs");

            migrationBuilder.AddColumn<byte[]>(
                name: "content",
                table: "source_blobs",
                type: "bytea",
                nullable: false,
                defaultValue: new byte[0]);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "content",
                table: "source_blobs");

            migrationBuilder.AddColumn<string>(
                name: "content",
                table: "source_blobs",
                type: "text",
                nullable: false,
                defaultValue: "");
        }
    }
}