using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Migrations.notifications { /// public partial class NotificationIdentifiable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropPrimaryKey( name: "PK_Notifications", table: "Notifications"); migrationBuilder.DropColumn( name: "NotificationId", table: "Notifications"); migrationBuilder.AddColumn( name: "Key", table: "Notifications", type: "text", nullable: false, defaultValue: ""); migrationBuilder.AddPrimaryKey( name: "PK_Notifications", table: "Notifications", column: "Key"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropPrimaryKey( name: "PK_Notifications", table: "Notifications"); migrationBuilder.DropColumn( name: "Key", table: "Notifications"); migrationBuilder.AddColumn( name: "NotificationId", table: "Notifications", type: "character varying(64)", maxLength: 64, nullable: false, defaultValue: ""); migrationBuilder.AddPrimaryKey( name: "PK_Notifications", table: "Notifications", column: "NotificationId"); } } }