mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-13 03:43:17 +02:00
99 lines
3.3 KiB
C#
99 lines
3.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class dev0104252Longer_Var_Chars : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "WebsiteUrl",
|
|
table: "Mangas",
|
|
type: "character varying(512)",
|
|
maxLength: 512,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Mangas",
|
|
type: "character varying(512)",
|
|
maxLength: 512,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IdOnConnectorSite",
|
|
table: "Mangas",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(128)",
|
|
oldMaxLength: 128);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DirectoryName",
|
|
table: "Mangas",
|
|
type: "character varying(1024)",
|
|
maxLength: 1024,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "WebsiteUrl",
|
|
table: "Mangas",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(512)",
|
|
oldMaxLength: 512);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Mangas",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(512)",
|
|
oldMaxLength: 512);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IdOnConnectorSite",
|
|
table: "Mangas",
|
|
type: "character varying(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DirectoryName",
|
|
table: "Mangas",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(1024)",
|
|
oldMaxLength: 1024);
|
|
}
|
|
}
|
|
}
|