mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-14 10:33:06 -05:00
38 lines
751 B
C#
38 lines
751 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Kyoo.Postgresql.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class MakePasswordOptional : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "password",
|
|
table: "users",
|
|
type: "text",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "text"
|
|
);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "password",
|
|
table: "users",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "text",
|
|
oldNullable: true
|
|
);
|
|
}
|
|
}
|