mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Remove unused small download album column
This commit is contained in:
parent
628e4cee5f
commit
13a7f99a5d
4 changed files with 11 additions and 6 deletions
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `small` on the `downloads` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `downloads` DROP COLUMN `small`;
|
||||||
|
|
@ -219,11 +219,10 @@ model discs {
|
||||||
}
|
}
|
||||||
|
|
||||||
model downloads {
|
model downloads {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
title String? @db.VarChar(255)
|
title String? @db.VarChar(255)
|
||||||
small Boolean?
|
|
||||||
albumId Int
|
albumId Int
|
||||||
album albums? @relation(fields: [albumId], references: [id], onDelete: Cascade, map: "downloads_ibfk_1")
|
album albums? @relation(fields: [albumId], references: [id], onDelete: Cascade, map: "downloads_ibfk_1")
|
||||||
links links[]
|
links links[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
||||||
tx.downloads.create({
|
tx.downloads.create({
|
||||||
data: {
|
data: {
|
||||||
title: d.title,
|
title: d.title,
|
||||||
small: d.small,
|
|
||||||
albumId: albumRow.id,
|
albumId: albumRow.id,
|
||||||
links: { create: d.links }
|
links: { create: d.links }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ const LinkInput = s.object({
|
||||||
|
|
||||||
export const DownloadInput = s.object({
|
export const DownloadInput = s.object({
|
||||||
title: s.string(),
|
title: s.string(),
|
||||||
small: s.defaulted(s.boolean(), false),
|
|
||||||
links: s.defaulted(s.array(LinkInput), [])
|
links: s.defaulted(s.array(LinkInput), [])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue