...
This commit is contained in:
2086
Back/Migrations/20250122093421_tbswarehouse.Designer.cs
generated
Normal file
2086
Back/Migrations/20250122093421_tbswarehouse.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
92
Back/Migrations/20250122093421_tbswarehouse.cs
Normal file
92
Back/Migrations/20250122093421_tbswarehouse.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Back.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tbswarehouse : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<decimal>(
|
||||
name: "Count",
|
||||
table: "Remittances",
|
||||
type: "decimal(18,2)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Deleted",
|
||||
table: "Remittances",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "InvoiceID",
|
||||
table: "Remittances",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<decimal>(
|
||||
name: "Count",
|
||||
table: "Receipts",
|
||||
type: "decimal(18,2)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Deleted",
|
||||
table: "Receipts",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "InvoiceID",
|
||||
table: "Receipts",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Deleted",
|
||||
table: "Remittances");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "InvoiceID",
|
||||
table: "Remittances");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Deleted",
|
||||
table: "Receipts");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "InvoiceID",
|
||||
table: "Receipts");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "Count",
|
||||
table: "Remittances",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(decimal),
|
||||
oldType: "decimal(18,2)");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "Count",
|
||||
table: "Receipts",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(decimal),
|
||||
oldType: "decimal(18,2)");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1463,16 +1463,22 @@ namespace Back.Migrations
|
||||
b.Property<int>("CODID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Count")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("Count")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<string>("Date")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<bool>("Deleted")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("ForSale")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<int?>("InvoiceID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -1498,13 +1504,19 @@ namespace Back.Migrations
|
||||
b.Property<int>("CODID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Count")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("Count")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<string>("Date")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<bool>("Deleted")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<int?>("InvoiceID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user