using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Musify.Infrastructure.Persistence.Migrations { /// public partial class AddPlayListProcessingStateSaga : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PlayListProcessingState", columns: table => new { CorrelationId = table.Column(type: "uuid", nullable: false), CurrentState = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), Bucket = table.Column(type: "text", nullable: true), PictureKey = table.Column(type: "text", nullable: true), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PlayListProcessingState", x => x.CorrelationId); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PlayListProcessingState"); } } }