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,40 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CartriX.Api.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddCartridgedateLastFillingAndmaxCountPrint : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateOnly>(
|
||||
name: "dateLastFilling",
|
||||
table: "Cartridges",
|
||||
type: "TEXT",
|
||||
nullable: false,
|
||||
defaultValue: new DateOnly(1, 1, 1));
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "maxCountPrint",
|
||||
table: "Cartridges",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "dateLastFilling",
|
||||
table: "Cartridges");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "maxCountPrint",
|
||||
table: "Cartridges");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user