summaryrefslogtreecommitdiff
path: root/Migrations/20220915213615_InitialCreate.cs
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-09-15 20:55:44 -0500
committerHombreLaser <sebastian-440@live.com>2022-09-15 20:55:44 -0500
commit2c9c2cc3b414115bca9b6c63ca7b20d49a8a8ec1 (patch)
tree0344372eca04eab992ece36c4e07511f6f0214c6 /Migrations/20220915213615_InitialCreate.cs
parent3381c633fcd73e5159ae4a607835167ebdbb12ee (diff)
Agregar autor
Diffstat (limited to 'Migrations/20220915213615_InitialCreate.cs')
-rw-r--r--Migrations/20220915213615_InitialCreate.cs36
1 files changed, 0 insertions, 36 deletions
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<long>(type: "bigint", nullable: false)
- .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- PublicationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
- Genres = table.Column<string[]>(type: "text[]", nullable: false),
- Edition = table.Column<int>(type: "integer", nullable: false),
- ISBN = table.Column<string>(type: "text", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Books", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Books");
- }
- }
-}