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( name: "is_sign_in", table: "register_check", type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "'N'", comment: "是签收"); migrationBuilder.AddColumn( name: "sign_in_person", table: "register_check", type: "character varying(16)", maxLength: 16, nullable: true, comment: "签收人姓名"); migrationBuilder.AddColumn( 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"); } } }