using Microsoft.EntityFrameworkCore.Migrations; namespace Sledgemapper.Api.Migrations { public partial class StringUserId : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "OwnerUserId", table: "Sessions", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "UserId", table: "MapLogs", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "OwnerUserId", table: "Sessions", type: "INTEGER", nullable: false, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "UserId", table: "MapLogs", type: "INTEGER", nullable: false, oldClrType: typeof(string), oldType: "TEXT"); } } }