Revert "images fixing with database saves"
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This reverts commit c45e054787.
This commit is contained in:
@ -20,8 +20,7 @@ export const events = sqliteTable('events', {
|
||||
title: text('title').notNull(),
|
||||
date: text('date').notNull(),
|
||||
description: text('description').notNull(),
|
||||
imageData: text('image_data').notNull(), // base64 encoded image
|
||||
mimeType: text('mime_type').notNull(), // e.g. 'image/webp', 'image/jpeg'
|
||||
imageUrl: text('image_url').notNull(),
|
||||
displayOrder: integer('display_order').notNull(),
|
||||
isPublished: integer('is_published', { mode: 'boolean' }).default(true),
|
||||
createdAt: integer('created_at', { mode: 'timestamp' }).default(sql`(unixepoch())`),
|
||||
@ -31,8 +30,7 @@ export const events = sqliteTable('events', {
|
||||
// Gallery images table
|
||||
export const galleryImages = sqliteTable('gallery_images', {
|
||||
id: text('id').primaryKey().$defaultFn(() => crypto.randomUUID()),
|
||||
imageData: text('image_data').notNull(), // base64 encoded image
|
||||
mimeType: text('mime_type').notNull(), // e.g. 'image/webp', 'image/jpeg'
|
||||
imageUrl: text('image_url').notNull(),
|
||||
altText: text('alt_text').notNull(),
|
||||
displayOrder: integer('display_order').notNull(),
|
||||
isPublished: integer('is_published', { mode: 'boolean' }).default(true),
|
||||
@ -61,4 +59,4 @@ export const publishHistory = sqliteTable('publish_history', {
|
||||
commitHash: text('commit_hash'),
|
||||
commitMessage: text('commit_message'),
|
||||
publishedAt: integer('published_at', { mode: 'timestamp' }).default(sql`(unixepoch())`),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user