asg_backend/asg_form/Migrations/20231210023816_friend3.cs

30 lines
739 B
C#
Raw Normal View History

2024-08-03 20:40:34 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace asg_form.Migrations
{
/// <inheritdoc />
public partial class friend3 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "degree",
table: "F_Friend",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "degree",
table: "F_Friend");
}
}
}