Prvi commit

This commit is contained in:
David Štaleker
2023-05-12 09:00:07 +02:00
parent d3ffe93e42
commit 03b92525d7
14757 changed files with 9251133 additions and 53 deletions

View 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");
}
}
}