mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
Допилил добавление принтера, сделал опрос принтеров сколько что они напечатали
This commit is contained in:
1 parent
b492435289
commit
4fbc39ca77
62 files changed
+5298
-105
No files matched your search
@@ -0,0 +1,42 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CartriX.Api.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class changeInitDataForCartdigeStatus : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "CartridgeStatuses",
|
||||
keyColumn: "id",
|
||||
keyValue: 6);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "CartridgeStatuses",
|
||||
keyColumn: "id",
|
||||
keyValue: 3,
|
||||
column: "name",
|
||||
value: "WriteOff");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "CartridgeStatuses",
|
||||
keyColumn: "id",
|
||||
keyValue: 3,
|
||||
column: "name",
|
||||
value: "Disposed");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "CartridgeStatuses",
|
||||
columns: new[] { "id", "name" },
|
||||
values: new object[] { 6, "WriteOff" });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user