62 lines
2.2 KiB
C#
62 lines
2.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace line_gestao_api.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddMuregLines : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "MuregLines",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
Item = table.Column<int>(type: "integer", nullable: false),
|
|
LinhaAntiga = table.Column<string>(type: "text", nullable: true),
|
|
LinhaNova = table.Column<string>(type: "text", nullable: true),
|
|
ICCID = table.Column<string>(type: "text", nullable: true),
|
|
DataDaMureg = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
|
Cliente = table.Column<string>(type: "text", nullable: true),
|
|
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_MuregLines", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MuregLines_Cliente",
|
|
table: "MuregLines",
|
|
column: "Cliente");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MuregLines_ICCID",
|
|
table: "MuregLines",
|
|
column: "ICCID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MuregLines_Item",
|
|
table: "MuregLines",
|
|
column: "Item");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MuregLines_LinhaNova",
|
|
table: "MuregLines",
|
|
column: "LinhaNova");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "MuregLines");
|
|
}
|
|
}
|
|
}
|