39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace MyOffice.Migrations.Postgres.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MotionCategoryFix : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
/*migrationBuilder.AlterColumn<long>(
|
|
name: "Id",
|
|
table: "AccountMotions",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uuid")
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);*/
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
/*migrationBuilder.AlterColumn<Guid>(
|
|
name: "Id",
|
|
table: "AccountMotions",
|
|
type: "uuid",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint")
|
|
.OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);*/
|
|
}
|
|
}
|
|
}
|