174 lines
7.6 KiB
C#
174 lines
7.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace W542.GandalfReborn.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class affwaf : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "TokenMetadata",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "Tenant",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "Subject",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "SignIn",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "Authority",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "AuthCode",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "AppRelation",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "TokenMetadata",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "Tenant",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "Subject",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "SignIn",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "Authority",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "AuthCode",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
schema: "gr",
|
|
table: "AppRelation",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityAlwaysColumn);
|
|
}
|
|
}
|
|
}
|