mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
36 lines
913 B
C#
36 lines
913 B
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Bit.SqliteMigrations.Migrations;
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class MakeBlobNonNull : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<byte[]>(
|
|||
|
name: "Value",
|
|||
|
table: "Cache",
|
|||
|
type: "BLOB",
|
|||
|
nullable: false,
|
|||
|
defaultValue: new byte[0],
|
|||
|
oldClrType: typeof(byte[]),
|
|||
|
oldType: "BLOB",
|
|||
|
oldNullable: true);
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<byte[]>(
|
|||
|
name: "Value",
|
|||
|
table: "Cache",
|
|||
|
type: "BLOB",
|
|||
|
nullable: true,
|
|||
|
oldClrType: typeof(byte[]),
|
|||
|
oldType: "BLOB");
|
|||
|
}
|
|||
|
}
|