File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 1- ALTER TABLE ` pph_post_assist_config`
2- ADD COLUMN IF NOT EXISTS ` enable_accept_solutions` BOOLEAN DEFAULT FALSE;
1+ -- depends: 18_post_assist
2+ ALTER TABLE pph_post_assist_config
3+ ADD COLUMN IF NOT EXISTS enable_accept_solutions BOOLEAN DEFAULT FALSE;
34
45CREATE TABLE
5- IF NOT EXISTS ` pph_post_assist_config_accept_solutions` (
6- ` id` INT (11 ) NOT NULL AUTO_INCREMENT,
7- ` thread_id` INT (11 ) NOT NULL ,
8- ` post_assist_config_id` INT (11 ) NOT NULL ,
9- ` user_id` INT (11 ) NOT NULL ,
10- ` created_at` DATETIME NOT NULL ,
11- );
6+ IF NOT EXISTS pph_post_assist_config_accept_solutions (
7+ id SERIAL PRIMARY KEY ,
8+ thread_id BIGINT NOT NULL ,
9+ post_assist_config_id SERIAL NOT NULL ,
10+ user_id BIGINT NOT NULL ,
11+ message_id BIGINT NOT NULL ,
12+ FOREIGN KEY (post_assist_config_id) REFERENCES pph_post_assist_config (id) ON DELETE CASCADE
13+ );
14+
15+ ALTER TABLE pph_post_assist_config_accept_solutions
16+ ADD COLUMN IF NOT EXISTS message_id BIGINT NOT NULL ;
You can’t perform that action at this time.
0 commit comments