47 lines
2.0 KiB
C#
47 lines
2.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassiApp.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class SystemMessagesAdded : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "SystemMessages",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
AppUserId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
Key = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
Table = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
|
|
Type = table.Column<int>(type: "INTEGER", nullable: false),
|
|
Message = table.Column<string>(type: "TEXT", maxLength: 500, nullable: true),
|
|
Expires = table.Column<long>(type: "INTEGER", nullable: true),
|
|
Read = table.Column<bool>(type: "INTEGER", nullable: false),
|
|
ReadDate = table.Column<long>(type: "INTEGER", nullable: true),
|
|
Created = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Version = table.Column<byte[]>(type: "BLOB", rowVersion: true, nullable: true),
|
|
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Deleted = table.Column<bool>(type: "INTEGER", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SystemMessages", x => x.Id);
|
|
});
|
|
|
|
System.Diagnostics.Debug.WriteLine($"Migration SystemMessagesAdded done");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "SystemMessages");
|
|
}
|
|
}
|
|
}
|