71 lines
2.0 KiB
C#
71 lines
2.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace EveryThing.Migrations
|
|
{
|
|
public partial class _5 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "InvoiceNumber",
|
|
table: "Invoices",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "InvoiceYear",
|
|
table: "Invoices",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Note",
|
|
table: "Invoices",
|
|
type: "longtext",
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PostText",
|
|
table: "Invoices",
|
|
type: "longtext",
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PreText",
|
|
table: "Invoices",
|
|
type: "longtext",
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "InvoiceNumber",
|
|
table: "Invoices");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "InvoiceYear",
|
|
table: "Invoices");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Note",
|
|
table: "Invoices");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PostText",
|
|
table: "Invoices");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PreText",
|
|
table: "Invoices");
|
|
}
|
|
}
|
|
}
|