Drugi
This commit is contained in:
40
ZpcBulletinBoard/Migrations/20240225172529_2.cs
Normal file
40
ZpcBulletinBoard/Migrations/20240225172529_2.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace ZpcBulletinBoard.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _2 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Name",
|
||||
table: "BulletinBoards",
|
||||
type: "longtext",
|
||||
nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Ratio",
|
||||
table: "BulletinBoards",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Name",
|
||||
table: "BulletinBoards");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Ratio",
|
||||
table: "BulletinBoards");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user