feat(db): add isResized to GalleryImage

This commit is contained in:
Kirill
2026-05-17 17:39:44 +05:00
parent f36439de38
commit c8281a39e5
3 changed files with 29 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { prisma } from '../src/lib/prisma.js'
async function main() {
const { count } = await prisma.galleryImage.updateMany({
where: { isResized: false },
data: { isResized: true },
})
console.log(`Marked ${count} existing images as resized`)
}
main()
.catch(console.error)
.finally(() => prisma.$disconnect())