using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BuildingBlocks.PersistMessageProcessor.Data.Migrations
{
///
public partial class initial : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "persist_message",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
datatype = table.Column(name: "data_type", type: "text", nullable: true),
data = table.Column(type: "text", nullable: true),
created = table.Column(type: "timestamp with time zone", nullable: false),
retrycount = table.Column(name: "retry_count", type: "integer", nullable: false),
messagestatus = table.Column(name: "message_status", type: "text", nullable: false, defaultValue: "InProgress"),
deliverytype = table.Column(name: "delivery_type", type: "text", nullable: false, defaultValue: "Outbox"),
version = table.Column(type: "bigint", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("pk_persist_message", x => x.id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "persist_message");
}
}
}