| 12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
-
- #nullable disable
-
- namespace BlackRock.Reporting.API.Migrations
- {
- public partial class ChangedIdFromGuidToInt : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<int>(
- name: "Id",
- table: "Users",
- type: "INTEGER",
- nullable: false,
- oldClrType: typeof(Guid),
- oldType: "TEXT")
- .Annotation("Sqlite:Autoincrement", true);
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<Guid>(
- name: "Id",
- table: "Users",
- type: "TEXT",
- nullable: false,
- oldClrType: typeof(int),
- oldType: "INTEGER")
- .OldAnnotation("Sqlite:Autoincrement", true);
- }
- }
- }
|