mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2026-02-04 10:34:13 +02:00
добавил патенты, верификацию, сделал паспорта, ип ооо
This commit is contained in:
65
Migrations/20231029164526_InitMigrate291945.cs
Normal file
65
Migrations/20231029164526_InitMigrate291945.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiscordApp.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitMigrate291945 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Passport_Bizness_BiznessId",
|
||||
schema: "public",
|
||||
table: "Passport");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Passport_BiznessId",
|
||||
schema: "public",
|
||||
table: "Passport");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BiznessId",
|
||||
schema: "public",
|
||||
table: "Passport");
|
||||
|
||||
migrationBuilder.AddColumn<int[]>(
|
||||
name: "BiznessEmployes",
|
||||
table: "Bizness",
|
||||
type: "integer[]",
|
||||
nullable: false,
|
||||
defaultValue: new int[0]);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BiznessEmployes",
|
||||
table: "Bizness");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "BiznessId",
|
||||
schema: "public",
|
||||
table: "Passport",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Passport_BiznessId",
|
||||
schema: "public",
|
||||
table: "Passport",
|
||||
column: "BiznessId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Passport_Bizness_BiznessId",
|
||||
schema: "public",
|
||||
table: "Passport",
|
||||
column: "BiznessId",
|
||||
principalTable: "Bizness",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user