mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-20 13:53:42 -05:00
update schema to support content warnings
This commit is contained in:
parent
b412418827
commit
b7208381cb
1 changed files with 7 additions and 4 deletions
11
schema.sql
11
schema.sql
|
@ -2,7 +2,8 @@ CREATE TABLE IF NOT EXISTS answers (
|
|||
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
question_id INT NOT NULL,
|
||||
creation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
content TEXT NOT NULL
|
||||
content TEXT NOT NULL,
|
||||
cw VARCHAR(255) NOT NULL DEFAULT ''
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS questions (
|
||||
|
@ -12,9 +13,11 @@ CREATE TABLE IF NOT EXISTS questions (
|
|||
content TEXT NOT NULL,
|
||||
answered BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
answer_id INT,
|
||||
pinned BOOLEAN NOT NULL DEFAULT FALSE
|
||||
-- below is reserved for version 1.6.0 or later
|
||||
-- private BOOLEAN NOT NULL DEFAULT FALSE
|
||||
pinned BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
cw VARCHAR(255) NOT NULL DEFAULT ''
|
||||
-- below is reserved for version 1.7.0 or later
|
||||
-- private BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
-- user_ip VARBINARY(16) NOT NULL DEFAULT ''
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE questions
|
||||
|
|
Loading…
Add table
Reference in a new issue