From 07422f665bf3eaf13d25f78409d10e6f252ae3d3 Mon Sep 17 00:00:00 2001 From: haraldnilsen Date: Mon, 18 Sep 2023 15:21:50 +0200 Subject: [PATCH] :fire: remove migration for inserting data Co-authored-by: Sindre Kjelsrud --- ...20230918094524_V2__insert_data.Designer.cs | 56 ------------------- .../20230918094524_V2__insert_data.cs | 22 -------- 2 files changed, 78 deletions(-) delete mode 100644 backend/Migrations/20230918094524_V2__insert_data.Designer.cs delete mode 100644 backend/Migrations/20230918094524_V2__insert_data.cs diff --git a/backend/Migrations/20230918094524_V2__insert_data.Designer.cs b/backend/Migrations/20230918094524_V2__insert_data.Designer.cs deleted file mode 100644 index 581a00c..0000000 --- a/backend/Migrations/20230918094524_V2__insert_data.Designer.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace backend.Migrations -{ - [DbContext(typeof(MovieDbContext))] - [Migration("20230918094524_V2__insert_data")] - partial class V2__insert_data - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "7.0.11") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("backend.MovieDB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Poster") - .HasColumnType("text"); - - b.Property("Title") - .HasColumnType("text"); - - b.Property("Type") - .HasColumnType("text"); - - b.Property("Year") - .HasColumnType("text"); - - b.Property("imdbID") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Movies"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/backend/Migrations/20230918094524_V2__insert_data.cs b/backend/Migrations/20230918094524_V2__insert_data.cs deleted file mode 100644 index 9208049..0000000 --- a/backend/Migrations/20230918094524_V2__insert_data.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace backend.Migrations -{ - /// - public partial class V2__insert_data : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - // insert to db - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -}