123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace wispro.sp.api.Migrations
- {
- public partial class _20211026 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<bool>(
- name: "IsOnJob",
- table: "Staff",
- type: "bit",
- nullable: false,
- defaultValue: false);
- migrationBuilder.AddColumn<string>(
- name: "Mobile",
- table: "Staff",
- type: "nvarchar(max)",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Sex",
- table: "Staff",
- type: "nvarchar(max)",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Tel",
- table: "Staff",
- type: "nvarchar(max)",
- nullable: true);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "IsOnJob",
- table: "Staff");
- migrationBuilder.DropColumn(
- name: "Mobile",
- table: "Staff");
- migrationBuilder.DropColumn(
- name: "Sex",
- table: "Staff");
- migrationBuilder.DropColumn(
- name: "Tel",
- table: "Staff");
- }
- }
- }
|