From 77147a4988dd8daa5f6393dda358f56d5cff7e79 Mon Sep 17 00:00:00 2001 From: Karan Date: Sun, 20 Mar 2022 13:09:22 +0000 Subject: [PATCH] chore: use bigint in publisher_book --- .../com/karankumar/booksapi/repository/AuthorRepository.java | 1 + src/main/resources/db/migration/V33__BIGINT_PUBLISHER_BOOK | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/main/resources/db/migration/V33__BIGINT_PUBLISHER_BOOK diff --git a/src/main/java/com/karankumar/booksapi/repository/AuthorRepository.java b/src/main/java/com/karankumar/booksapi/repository/AuthorRepository.java index e98ace4d..0f72ac5b 100644 --- a/src/main/java/com/karankumar/booksapi/repository/AuthorRepository.java +++ b/src/main/java/com/karankumar/booksapi/repository/AuthorRepository.java @@ -13,6 +13,7 @@ * If not, see . */ + package com.karankumar.booksapi.repository; import com.karankumar.booksapi.model.Author; diff --git a/src/main/resources/db/migration/V33__BIGINT_PUBLISHER_BOOK b/src/main/resources/db/migration/V33__BIGINT_PUBLISHER_BOOK new file mode 100644 index 00000000..202dd3a6 --- /dev/null +++ b/src/main/resources/db/migration/V33__BIGINT_PUBLISHER_BOOK @@ -0,0 +1,5 @@ +ALTER TABLE publisher_book +ALTER COLUMN book_id TYPE bigint; + +ALTER TABLE publisher_book +ALTER COLUMN publisher_id TYPE bigint;