using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Musify.Infrastructure.Persistence.Migrations { /// public partial class AddTrackProcessingStateSaga : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TrackProcessingState", columns: table => new { CorrelationId = table.Column(type: "uuid", nullable: false), CurrentState = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), PictureProcessed = table.Column(type: "boolean", nullable: false), AudioProcessed = table.Column(type: "boolean", nullable: false), 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_TrackProcessingState", x => x.CorrelationId); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TrackProcessingState"); } } }