2015-02-25 20:17:07 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS push_rules_enable (
|
2015-03-19 14:42:39 +01:00
|
|
|
id BIGINT PRIMARY KEY,
|
2015-03-18 12:18:49 +01:00
|
|
|
user_name VARCHAR(255) NOT NULL,
|
|
|
|
rule_id VARCHAR(255) NOT NULL,
|
2015-02-25 20:17:07 +01:00
|
|
|
enabled TINYINT,
|
|
|
|
UNIQUE(user_name, rule_id)
|
2015-04-01 15:12:33 +02:00
|
|
|
) ;
|
2015-02-25 20:17:07 +01:00
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS push_rules_enable_user_name on push_rules_enable (user_name);
|