using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Migrations { /// public partial class ChangeAgeFieldsToInt : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "StartingAge", table: "Altersgruppen", type: "INTEGER", nullable: false, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "EndingAge", table: "Altersgruppen", type: "INTEGER", nullable: false, oldClrType: typeof(string), oldType: "TEXT"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "StartingAge", table: "Altersgruppen", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "EndingAge", table: "Altersgruppen", type: "TEXT", nullable: false, oldClrType: typeof(int), oldType: "INTEGER"); } } }