diff --git a/prisma/migrations/20250410234700_nullable_album_created_at/migration.sql b/prisma/migrations/20250410234700_nullable_album_created_at/migration.sql new file mode 100644 index 0000000..10f8397 --- /dev/null +++ b/prisma/migrations/20250410234700_nullable_album_created_at/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE `albums` MODIFY `createdAt` DATETIME(0) NULL DEFAULT CURRENT_TIMESTAMP(0); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8db3389..1f2a85a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -130,7 +130,7 @@ model albums { releaseDate DateTime? @db.Date label String? @db.VarChar(255) vgmdb String? @db.VarChar(255) - createdAt DateTime @default(now()) @db.DateTime(0) + createdAt DateTime? @default(now()) @db.DateTime(0) updatedAt DateTime @default(now()) @db.DateTime(0) publishedAt DateTime @default(now()) description String? @db.VarChar(255) diff --git a/src/components/lastAdded/FooterNav.astro b/src/components/lastAdded/FooterNav.astro index edbdb65..8c8682b 100644 --- a/src/components/lastAdded/FooterNav.astro +++ b/src/components/lastAdded/FooterNav.astro @@ -17,7 +17,7 @@ fullPageList.forEach((n) => { }) const currentListIndex = pageList.findIndex((l) => l.includes(page)) -const currentList = pageList[currentListIndex] +const currentList = pageList[currentListIndex] ?? [] ---