prvi
This commit is contained in:
2276
EveryThing/Migrations/20220312183512_1.Designer.cs
generated
Normal file
2276
EveryThing/Migrations/20220312183512_1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1784
EveryThing/Migrations/20220312183512_1.cs
Normal file
1784
EveryThing/Migrations/20220312183512_1.cs
Normal file
File diff suppressed because it is too large
Load Diff
2347
EveryThing/Migrations/20220614112949_2.Designer.cs
generated
Normal file
2347
EveryThing/Migrations/20220614112949_2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
270
EveryThing/Migrations/20220614112949_2.cs
Normal file
270
EveryThing/Migrations/20220614112949_2.cs
Normal file
@@ -0,0 +1,270 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _2 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_Invoices_IdInvoiceFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_Invoices",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "IdProject",
|
||||
table: "Invoices",
|
||||
newName: "Type");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "Type",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int")
|
||||
.OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IdInvoice",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "Date",
|
||||
table: "Invoices",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IdPartnerFk",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "Discount",
|
||||
table: "InvoiceItems",
|
||||
type: "double",
|
||||
nullable: false,
|
||||
defaultValue: 0.0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IdItemFk",
|
||||
table: "InvoiceItems",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ItemDescription",
|
||||
table: "InvoiceItems",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Note",
|
||||
table: "InvoiceItems",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "Price",
|
||||
table: "InvoiceItems",
|
||||
type: "double",
|
||||
nullable: false,
|
||||
defaultValue: 0.0);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "Quantity",
|
||||
table: "InvoiceItems",
|
||||
type: "double",
|
||||
nullable: false,
|
||||
defaultValue: 0.0);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "Tax",
|
||||
table: "InvoiceItems",
|
||||
type: "double",
|
||||
nullable: false,
|
||||
defaultValue: 0.0);
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_Invoices",
|
||||
table: "Invoices",
|
||||
column: "IdInvoice");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Invoices_IdPartnerFk",
|
||||
table: "Invoices",
|
||||
column: "IdPartnerFk");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_InvoiceItems_IdItemFk",
|
||||
table: "InvoiceItems",
|
||||
column: "IdItemFk");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_InvoiceItems_IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
column: "IdProjectPartItem");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_CodeTableItems_IdItemFk",
|
||||
table: "InvoiceItems",
|
||||
column: "IdItemFk",
|
||||
principalTable: "CodeTableItems",
|
||||
principalColumn: "IdItem");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_Invoices_IdInvoiceFk",
|
||||
table: "InvoiceItems",
|
||||
column: "IdInvoiceFk",
|
||||
principalTable: "Invoices",
|
||||
principalColumn: "IdInvoice",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
column: "IdProjectPartItem",
|
||||
principalTable: "ProjectPartItems",
|
||||
principalColumn: "IdProjectPartItem",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Invoices_CodeTablePartners_IdPartnerFk",
|
||||
table: "Invoices",
|
||||
column: "IdPartnerFk",
|
||||
principalTable: "CodeTablePartners",
|
||||
principalColumn: "IdPartner",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_CodeTableItems_IdItemFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_Invoices_IdInvoiceFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Invoices_CodeTablePartners_IdPartnerFk",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_Invoices",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Invoices_IdPartnerFk",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_InvoiceItems_IdItemFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_InvoiceItems_IdProjectPartItem",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdInvoice",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Date",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdPartnerFk",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Discount",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdItemFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdProjectPartItem",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ItemDescription",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Note",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Price",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Quantity",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Tax",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Type",
|
||||
table: "Invoices",
|
||||
newName: "IdProject");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "IdProject",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int")
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_Invoices",
|
||||
table: "Invoices",
|
||||
column: "IdProject");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_Invoices_IdInvoiceFk",
|
||||
table: "InvoiceItems",
|
||||
column: "IdInvoiceFk",
|
||||
principalTable: "Invoices",
|
||||
principalColumn: "IdProject",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
2350
EveryThing/Migrations/20220614114647_3.Designer.cs
generated
Normal file
2350
EveryThing/Migrations/20220614114647_3.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
EveryThing/Migrations/20220614114647_3.cs
Normal file
26
EveryThing/Migrations/20220614114647_3.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _3 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "State",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "State",
|
||||
table: "Invoices");
|
||||
}
|
||||
}
|
||||
}
|
||||
2348
EveryThing/Migrations/20220615133522_4.Designer.cs
generated
Normal file
2348
EveryThing/Migrations/20220615133522_4.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
56
EveryThing/Migrations/20220615133522_4.cs
Normal file
56
EveryThing/Migrations/20220615133522_4.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _4 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
column: "IdProjectPartItem",
|
||||
principalTable: "ProjectPartItems",
|
||||
principalColumn: "IdProjectPartItem");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
|
||||
table: "InvoiceItems",
|
||||
column: "IdProjectPartItem",
|
||||
principalTable: "ProjectPartItems",
|
||||
principalColumn: "IdProjectPartItem",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
||||
2363
EveryThing/Migrations/20220617041022_5.Designer.cs
generated
Normal file
2363
EveryThing/Migrations/20220617041022_5.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
70
EveryThing/Migrations/20220617041022_5.cs
Normal file
70
EveryThing/Migrations/20220617041022_5.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _5 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "InvoiceNumber",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "InvoiceYear",
|
||||
table: "Invoices",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Note",
|
||||
table: "Invoices",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PostText",
|
||||
table: "Invoices",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PreText",
|
||||
table: "Invoices",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "InvoiceNumber",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "InvoiceYear",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Note",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PostText",
|
||||
table: "Invoices");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PreText",
|
||||
table: "Invoices");
|
||||
}
|
||||
}
|
||||
}
|
||||
2381
EveryThing/Migrations/20220617071940_6.Designer.cs
generated
Normal file
2381
EveryThing/Migrations/20220617071940_6.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
58
EveryThing/Migrations/20220617071940_6.cs
Normal file
58
EveryThing/Migrations/20220617071940_6.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _6 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IdPartnerFk",
|
||||
table: "Projects",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "LogoFileName",
|
||||
table: "CodeTableCompanies",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Projects_IdPartnerFk",
|
||||
table: "Projects",
|
||||
column: "IdPartnerFk");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Projects_CodeTablePartners_IdPartnerFk",
|
||||
table: "Projects",
|
||||
column: "IdPartnerFk",
|
||||
principalTable: "CodeTablePartners",
|
||||
principalColumn: "IdPartner",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Projects_CodeTablePartners_IdPartnerFk",
|
||||
table: "Projects");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Projects_IdPartnerFk",
|
||||
table: "Projects");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdPartnerFk",
|
||||
table: "Projects");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LogoFileName",
|
||||
table: "CodeTableCompanies");
|
||||
}
|
||||
}
|
||||
}
|
||||
2384
EveryThing/Migrations/20220728190422_7.Designer.cs
generated
Normal file
2384
EveryThing/Migrations/20220728190422_7.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
EveryThing/Migrations/20220728190422_7.cs
Normal file
26
EveryThing/Migrations/20220728190422_7.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _7 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DateOfDispatch",
|
||||
table: "Invoices",
|
||||
type: "datetime(6)",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DateOfDispatch",
|
||||
table: "Invoices");
|
||||
}
|
||||
}
|
||||
}
|
||||
2387
EveryThing/Migrations/20220729120715_8.Designer.cs
generated
Normal file
2387
EveryThing/Migrations/20220729120715_8.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
EveryThing/Migrations/20220729120715_8.cs
Normal file
26
EveryThing/Migrations/20220729120715_8.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _8 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PathOfPlans",
|
||||
table: "ProjectParts",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PathOfPlans",
|
||||
table: "ProjectParts");
|
||||
}
|
||||
}
|
||||
}
|
||||
2390
EveryThing/Migrations/20220905044842_9.Designer.cs
generated
Normal file
2390
EveryThing/Migrations/20220905044842_9.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
EveryThing/Migrations/20220905044842_9.cs
Normal file
26
EveryThing/Migrations/20220905044842_9.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _9 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "State",
|
||||
table: "InvoiceItems",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "State",
|
||||
table: "InvoiceItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
2399
EveryThing/Migrations/20220926142447_10.Designer.cs
generated
Normal file
2399
EveryThing/Migrations/20220926142447_10.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
48
EveryThing/Migrations/20220926142447_10.cs
Normal file
48
EveryThing/Migrations/20220926142447_10.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _10 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Buyer",
|
||||
table: "CodeTablePartners",
|
||||
type: "tinyint(1)",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Supplier",
|
||||
table: "CodeTablePartners",
|
||||
type: "tinyint(1)",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CodeTableItemType",
|
||||
table: "CodeTableItems",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Buyer",
|
||||
table: "CodeTablePartners");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Supplier",
|
||||
table: "CodeTablePartners");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CodeTableItemType",
|
||||
table: "CodeTableItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
2417
EveryThing/Migrations/20220930114206_11.Designer.cs
generated
Normal file
2417
EveryThing/Migrations/20220930114206_11.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
81
EveryThing/Migrations/20220930114206_11.cs
Normal file
81
EveryThing/Migrations/20220930114206_11.cs
Normal file
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _11 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BuyersOrderNumber",
|
||||
table: "Projects",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ProjectNumber",
|
||||
table: "Projects",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ProjectYear",
|
||||
table: "Projects",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ProjectPartNumber",
|
||||
table: "ProjectParts",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DeliveryDate",
|
||||
table: "ProjectPartItems",
|
||||
type: "datetime(6)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ProjectPartItemNumber",
|
||||
table: "ProjectPartItems",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BuyersOrderNumber",
|
||||
table: "Projects");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProjectNumber",
|
||||
table: "Projects");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProjectYear",
|
||||
table: "Projects");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProjectPartNumber",
|
||||
table: "ProjectParts");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DeliveryDate",
|
||||
table: "ProjectPartItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProjectPartItemNumber",
|
||||
table: "ProjectPartItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
2420
EveryThing/Migrations/20220930123821_12.Designer.cs
generated
Normal file
2420
EveryThing/Migrations/20220930123821_12.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
EveryThing/Migrations/20220930123821_12.cs
Normal file
26
EveryThing/Migrations/20220930123821_12.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _12 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BuyersOrderNumber",
|
||||
table: "Invoices",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BuyersOrderNumber",
|
||||
table: "Invoices");
|
||||
}
|
||||
}
|
||||
}
|
||||
2423
EveryThing/Migrations/20221011035800_13.Designer.cs
generated
Normal file
2423
EveryThing/Migrations/20221011035800_13.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
EveryThing/Migrations/20221011035800_13.cs
Normal file
26
EveryThing/Migrations/20221011035800_13.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _13 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<float>(
|
||||
name: "SellingPrice",
|
||||
table: "ProjectPartItems",
|
||||
type: "float",
|
||||
nullable: false,
|
||||
defaultValue: 0f);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SellingPrice",
|
||||
table: "ProjectPartItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
2426
EveryThing/Migrations/20221203123112_14.Designer.cs
generated
Normal file
2426
EveryThing/Migrations/20221203123112_14.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
27
EveryThing/Migrations/20221203123112_14.cs
Normal file
27
EveryThing/Migrations/20221203123112_14.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _14 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DateModified",
|
||||
table: "ProjectPartItems",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DateModified",
|
||||
table: "ProjectPartItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
2437
EveryThing/Migrations/20230117050632_15.Designer.cs
generated
Normal file
2437
EveryThing/Migrations/20230117050632_15.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
45
EveryThing/Migrations/20230117050632_15.cs
Normal file
45
EveryThing/Migrations/20230117050632_15.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace EveryThing.Migrations
|
||||
{
|
||||
public partial class _15 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IdInvoiceItemJoinFk",
|
||||
table: "InvoiceItems",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_InvoiceItems_IdInvoiceItemJoinFk",
|
||||
table: "InvoiceItems",
|
||||
column: "IdInvoiceItemJoinFk");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InvoiceItems_InvoiceItems_IdInvoiceItemJoinFk",
|
||||
table: "InvoiceItems",
|
||||
column: "IdInvoiceItemJoinFk",
|
||||
principalTable: "InvoiceItems",
|
||||
principalColumn: "IdInvoiceItem");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InvoiceItems_InvoiceItems_IdInvoiceItemJoinFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_InvoiceItems_IdInvoiceItemJoinFk",
|
||||
table: "InvoiceItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdInvoiceItemJoinFk",
|
||||
table: "InvoiceItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
2435
EveryThing/Migrations/ApplicationDbContextModelSnapshot.cs
Normal file
2435
EveryThing/Migrations/ApplicationDbContextModelSnapshot.cs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user