30971-vm/db/migrations/002_create_site_content_table.sql
Flatlogic Bot f2c0bb39c0 v1
2025-10-16 13:19:27 +00:00

10 lines
486 B
SQL

CREATE TABLE IF NOT EXISTS `site_content` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`section_key` VARCHAR(100) NOT NULL UNIQUE,
`section_value` TEXT,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
-- Seed the about section with some default text
INSERT INTO `site_content` (section_key, section_value) VALUES ('about_me', 'This is the default about me text. You can edit this in the admin panel.') ON DUPLICATE KEY UPDATE section_key=section_key;