41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace Marco.Pms.DataAccess.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class Added_IsSystem_Flag : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<bool>(
 | |
|                 name: "IsSystem",
 | |
|                 table: "Employees",
 | |
|                 type: "tinyint(1)",
 | |
|                 nullable: false,
 | |
|                 defaultValue: false);
 | |
| 
 | |
|             migrationBuilder.AddColumn<bool>(
 | |
|                 name: "IsSystem",
 | |
|                 table: "ApplicationRoles",
 | |
|                 type: "tinyint(1)",
 | |
|                 nullable: false,
 | |
|                 defaultValue: false);
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "IsSystem",
 | |
|                 table: "Employees");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "IsSystem",
 | |
|                 table: "ApplicationRoles");
 | |
|         }
 | |
|     }
 | |
| }
 |