From 3381c633fcd73e5159ae4a607835167ebdbb12ee Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 15 Sep 2022 18:58:24 -0500 Subject: Cambiar PublicationDate por PublicationYear --- .../20220915235413_AddBookPublicationYear.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Migrations/20220915235413_AddBookPublicationYear.cs (limited to 'Migrations/20220915235413_AddBookPublicationYear.cs') diff --git a/Migrations/20220915235413_AddBookPublicationYear.cs b/Migrations/20220915235413_AddBookPublicationYear.cs new file mode 100644 index 0000000..12bf4b3 --- /dev/null +++ b/Migrations/20220915235413_AddBookPublicationYear.cs @@ -0,0 +1,26 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace LibraryAPI.Migrations +{ + public partial class AddBookPublicationYear : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "PublicationYear", + table: "Books", + type: "integer", + nullable: false, + defaultValue: 0); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "PublicationYear", + table: "Books"); + } + } +} -- cgit v1.2.3