using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Govor.Data.Migrations { /// public partial class FixPushTokensIndexs : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_UserPushTokens_UserId", table: "UserPushTokens"); migrationBuilder.AlterColumn( name: "Token", table: "UserPushTokens", type: "character varying(512)", maxLength: 512, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Provider", table: "UserPushTokens", type: "character varying(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Platform", table: "UserPushTokens", type: "character varying(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "text"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Token", table: "UserPushTokens", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(512)", oldMaxLength: 512); migrationBuilder.AlterColumn( name: "Provider", table: "UserPushTokens", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(50)", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "Platform", table: "UserPushTokens", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(50)", oldMaxLength: 50); migrationBuilder.CreateIndex( name: "IX_UserPushTokens_UserId", table: "UserPushTokens", column: "UserId", unique: true); } } }