diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-11-28 22:46:28 -0500 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-11-28 22:46:28 -0500 |
| commit | 7681e421edb3933c8727cb0936bc8310d79df6e2 (patch) | |
| tree | 6f74c9ea471b6820c23bcb1694079a250d09510d /schema.sql | |
| parent | de4a37b4cdb4cd752c4ce2361912fa2bb84cc766 (diff) | |
fix: change news image table to handle multiple images for each post
Diffstat (limited to 'schema.sql')
| -rw-r--r-- | schema.sql | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,7 +13,8 @@ CREATE TABLE IF NOT EXISTS news ( ); CREATE TABLE IF NOT EXISTS news_images ( - news_id VARCHAR(255) NOT NULL PRIMARY KEY, + id INTEGER PRIMARY KEY AUTOINCREMENT, + news_id VARCHAR(255) NOT NULL, image_url TEXT NOT NULL, link_url TEXT, FOREIGN KEY (news_id) REFERENCES news(news_id) ON DELETE CASCADE |
