aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Migrations/20221222153132_FolderParent.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-12-30 20:22:55 +0100
committerivarlovlie <git@ivarlovlie.no>2022-12-30 20:22:55 +0100
commit3c188c2949af9d0e08db74a850f8a87dad52de49 (patch)
tree5dba85786aa9a5a72d91328092a017f16318b8c0 /code/api/Migrations/20221222153132_FolderParent.cs
parentf5374b0b3543b0bd7d280f71ed8bf5175bad3834 (diff)
downloadstorage-3c188c2949af9d0e08db74a850f8a87dad52de49.tar.xz
storage-3c188c2949af9d0e08db74a850f8a87dad52de49.zip
feat: Yes
Diffstat (limited to 'code/api/Migrations/20221222153132_FolderParent.cs')
-rw-r--r--code/api/Migrations/20221222153132_FolderParent.cs211
1 files changed, 0 insertions, 211 deletions
diff --git a/code/api/Migrations/20221222153132_FolderParent.cs b/code/api/Migrations/20221222153132_FolderParent.cs
deleted file mode 100644
index 1525d4c..0000000
--- a/code/api/Migrations/20221222153132_FolderParent.cs
+++ /dev/null
@@ -1,211 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace I2R.Storage.Api.Migrations
-{
- /// <inheritdoc />
- public partial class FolderParent : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "username",
- table: "users",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "password",
- table: "users",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "last_name",
- table: "users",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "first_name",
- table: "users",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "name",
- table: "permission_groups",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "description",
- table: "permission_groups",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "name",
- table: "folders",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AddColumn<Guid>(
- name: "parent_id",
- table: "folders",
- type: "uuid",
- nullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "name",
- table: "files",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.AlterColumn<string>(
- name: "mime_type",
- table: "files",
- type: "text",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "text");
-
- migrationBuilder.CreateIndex(
- name: "ix_folders_parent_id",
- table: "folders",
- column: "parent_id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_folders_folders_parent_id",
- table: "folders",
- column: "parent_id",
- principalTable: "folders",
- principalColumn: "id");
- }
-
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropForeignKey(
- name: "fk_folders_folders_parent_id",
- table: "folders");
-
- migrationBuilder.DropIndex(
- name: "ix_folders_parent_id",
- table: "folders");
-
- migrationBuilder.DropColumn(
- name: "parent_id",
- table: "folders");
-
- migrationBuilder.AlterColumn<string>(
- name: "username",
- table: "users",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "password",
- table: "users",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "last_name",
- table: "users",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "first_name",
- table: "users",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "name",
- table: "permission_groups",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "description",
- table: "permission_groups",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "name",
- table: "folders",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "name",
- table: "files",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
-
- migrationBuilder.AlterColumn<string>(
- name: "mime_type",
- table: "files",
- type: "text",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "text",
- oldNullable: true);
- }
- }
-}