All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace agologum_api.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class fixNullPermissions : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<List<string>>(
|
|
name: "Permissions",
|
|
table: "AspNetUsers",
|
|
type: "text[]",
|
|
nullable: true,
|
|
oldClrType: typeof(List<string>),
|
|
oldType: "text[]");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<List<string>>(
|
|
name: "Permissions",
|
|
table: "AspNetUsers",
|
|
type: "text[]",
|
|
nullable: false,
|
|
oldClrType: typeof(List<string>),
|
|
oldType: "text[]",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|