Add pinned and locked to thread table and setup routes
This commit is contained in:
@@ -17,6 +17,8 @@ CREATE TABLE IF NOT EXISTS threads (
|
||||
subject TEXT NOT NULL DEFAULT '',
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
bumped_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
pinned BOOLEAN NOT NULL DEFAULT 0,
|
||||
locked BOOLEAN NOT NULL DEFAULT 0,
|
||||
FOREIGN KEY (board_slug) REFERENCES boards(slug) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user