#nullable disable using Microsoft.EntityFrameworkCore.Migrations; namespace Quality.Storage.Api.Migrations { /// public partial class UpdateFeb2024 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "owning_user_id", table: "users"); migrationBuilder.AlterColumn( name: "username", table: "users", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "password", table: "users", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "last_name", table: "users", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "first_name", table: "users", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "name", table: "permission_groups", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "description", table: "permission_groups", type: "character varying(450)", maxLength: 450, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "name", table: "folders", type: "character varying(200)", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "name", table: "files", type: "character varying(200)", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "mime_type", table: "files", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "username", table: "users", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "password", table: "users", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "last_name", table: "users", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "first_name", table: "users", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AddColumn( name: "owning_user_id", table: "users", type: "uuid", nullable: true); migrationBuilder.AlterColumn( name: "name", table: "permission_groups", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "description", table: "permission_groups", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(450)", oldMaxLength: 450, oldNullable: true); migrationBuilder.AlterColumn( name: "name", table: "folders", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(200)", oldMaxLength: 200, oldNullable: true); migrationBuilder.AlterColumn( name: "name", table: "files", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(200)", oldMaxLength: 200, oldNullable: true); migrationBuilder.AlterColumn( name: "mime_type", table: "files", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); } } }