using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Sledgemapper.Api.Migrations { public partial class SessionIdToGuid : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "SessionId", table: "Snapshots", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "SessionId", table: "SessionUsers", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "SessionId", table: "Sessions", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER") .OldAnnotation("Sqlite:Autoincrement", true); migrationBuilder.AlterColumn( name: "SessionId", table: "MapLogs", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "SessionId", table: "Snapshots", type: "INTEGER", nullable: false, oldClrType: typeof(Guid), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "SessionId", table: "SessionUsers", type: "INTEGER", nullable: false, oldClrType: typeof(Guid), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "SessionId", table: "Sessions", type: "INTEGER", nullable: false, oldClrType: typeof(Guid), oldType: "TEXT") .Annotation("Sqlite:Autoincrement", true); migrationBuilder.AlterColumn( name: "SessionId", table: "MapLogs", type: "INTEGER", nullable: false, oldClrType: typeof(Guid), oldType: "TEXT"); } } }