mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-12 19:36:08 +02:00
63 lines
1.7 KiB
C#
63 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class dev0803251 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string[]>(
|
|
name: "AltTitleIds",
|
|
table: "Manga",
|
|
type: "text[]",
|
|
nullable: false,
|
|
defaultValue: new string[0]);
|
|
|
|
migrationBuilder.AddColumn<string[]>(
|
|
name: "AuthorIds",
|
|
table: "Manga",
|
|
type: "text[]",
|
|
nullable: false,
|
|
defaultValue: new string[0]);
|
|
|
|
migrationBuilder.AddColumn<string[]>(
|
|
name: "LinkIds",
|
|
table: "Manga",
|
|
type: "text[]",
|
|
nullable: false,
|
|
defaultValue: new string[0]);
|
|
|
|
migrationBuilder.AddColumn<string[]>(
|
|
name: "TagIds",
|
|
table: "Manga",
|
|
type: "text[]",
|
|
nullable: false,
|
|
defaultValue: new string[0]);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "AltTitleIds",
|
|
table: "Manga");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "AuthorIds",
|
|
table: "Manga");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LinkIds",
|
|
table: "Manga");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TagIds",
|
|
table: "Manga");
|
|
}
|
|
}
|
|
}
|