From 2c9c2cc3b414115bca9b6c63ca7b20d49a8a8ec1 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 15 Sep 2022 20:55:44 -0500 Subject: Agregar autor --- Migrations/20220915213615_InitialCreate.cs | 36 ------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 Migrations/20220915213615_InitialCreate.cs (limited to 'Migrations/20220915213615_InitialCreate.cs') diff --git a/Migrations/20220915213615_InitialCreate.cs b/Migrations/20220915213615_InitialCreate.cs deleted file mode 100644 index ae3abe2..0000000 --- a/Migrations/20220915213615_InitialCreate.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace LibraryAPI.Migrations -{ - public partial class InitialCreate : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Books", - columns: table => new - { - Id = table.Column(type: "bigint", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - PublicationDate = table.Column(type: "timestamp with time zone", nullable: false), - Genres = table.Column(type: "text[]", nullable: false), - Edition = table.Column(type: "integer", nullable: false), - ISBN = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Books", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Books"); - } - } -} -- cgit v1.2.3