You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
52 lines
1.5 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Shentun.Peis.Migrations
|
|
{
|
|
public partial class init20240605001 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<char>(
|
|
name: "is_sign_in",
|
|
table: "register_check",
|
|
type: "character(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValueSql: "'N'",
|
|
comment: "是签收");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "sign_in_person",
|
|
table: "register_check",
|
|
type: "character varying(16)",
|
|
maxLength: 16,
|
|
nullable: true,
|
|
comment: "签收人姓名");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "sign_in_time",
|
|
table: "register_check",
|
|
type: "timestamp without time zone",
|
|
nullable: true,
|
|
comment: "签收时间");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "is_sign_in",
|
|
table: "register_check");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "sign_in_person",
|
|
table: "register_check");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "sign_in_time",
|
|
table: "register_check");
|
|
}
|
|
}
|
|
}
|