mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-12 19:36:08 +02:00
139 lines
4.7 KiB
C#
139 lines
4.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class dev1303258 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Url",
|
|
table: "NotificationConnectors",
|
|
type: "character varying(2048)",
|
|
maxLength: 2048,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Body",
|
|
table: "NotificationConnectors",
|
|
type: "character varying(4096)",
|
|
maxLength: 4096,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(512)",
|
|
oldMaxLength: 512);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IconUrl",
|
|
table: "MangaConnectors",
|
|
type: "character varying(2048)",
|
|
maxLength: 2048,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LinkUrl",
|
|
table: "Link",
|
|
type: "character varying(2048)",
|
|
maxLength: 2048,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(128)",
|
|
oldMaxLength: 128);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LinkProvider",
|
|
table: "Link",
|
|
type: "character varying(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(128)",
|
|
oldMaxLength: 128);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Url",
|
|
table: "Chapters",
|
|
type: "character varying(2048)",
|
|
maxLength: 2048,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(256)",
|
|
oldMaxLength: 256);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Url",
|
|
table: "NotificationConnectors",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(2048)",
|
|
oldMaxLength: 2048);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Body",
|
|
table: "NotificationConnectors",
|
|
type: "character varying(512)",
|
|
maxLength: 512,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(4096)",
|
|
oldMaxLength: 4096);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IconUrl",
|
|
table: "MangaConnectors",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(2048)",
|
|
oldMaxLength: 2048);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LinkUrl",
|
|
table: "Link",
|
|
type: "character varying(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(2048)",
|
|
oldMaxLength: 2048);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LinkProvider",
|
|
table: "Link",
|
|
type: "character varying(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(64)",
|
|
oldMaxLength: 64);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Url",
|
|
table: "Chapters",
|
|
type: "character varying(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(2048)",
|
|
oldMaxLength: 2048);
|
|
}
|
|
}
|
|
}
|