Changeset 0403187 in Klonkt for src/config
- Timestamp:
- 07/01/2026 12:53:32 PM (2 months ago)
- Branches:
- main
- Children:
- bb3f67c
- Parents:
- 731e431
- File:
-
- 1 edited
-
src/config/database.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/config/database.js
r731e431 r0403187 87 87 ensureColumn('posts', 'content_warning', 'TEXT'); // custom CW label (empty = default "Gevoelige inhoud") 88 88 ensureColumn('posts', 'type', "TEXT DEFAULT 'post'"); // post | foto | video | audio 89 ensureColumn('posts', 'poll_json', 'TEXT'); // a poll WE host → federates as AS2 Question: {multiple,options[{name}],endTime,closed} 89 90 90 91 // Statistics (premium module) — bare counters, cookie-free. … … 331 332 ); 332 333 CREATE INDEX IF NOT EXISTS idx_ap_delivery_due ON ap_delivery(next_at); 334 CREATE TABLE IF NOT EXISTS poll_votes ( 335 id INTEGER PRIMARY KEY AUTOINCREMENT, 336 post_id INTEGER NOT NULL, -- our local poll post (posts.id) 337 actor_uri TEXT NOT NULL, -- the remote voter's AP actor URI 338 choice TEXT NOT NULL, -- the chosen option's name (matches poll_json options[].name) 339 created_at DATETIME DEFAULT CURRENT_TIMESTAMP, 340 UNIQUE(post_id, actor_uri, choice) 341 ); 342 CREATE INDEX IF NOT EXISTS idx_poll_votes_post ON poll_votes(post_id); 333 343 `); 334 344 // "Feature" a followed account: its posts show in the local Cirkel.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)