Removing restriction about the channel_id and add it to all the databases

This commit is contained in:
Jesús Espino 2022-04-04 17:45:00 +02:00
parent cb6272af6c
commit b9be81b900

View file

@ -5,9 +5,7 @@ CREATE TABLE {{.prefix}}categories (
name varchar(100) NOT NULL,
user_id varchar(32) NOT NULL,
team_id varchar(32) NOT NULL,
{{if not .sqlite}}
channel_id varchar(32) NOT NULL,
{{end}}
channel_id varchar(32),
create_at BIGINT,
update_at BIGINT,
delete_at BIGINT,
@ -19,7 +17,7 @@ CREATE TABLE {{.prefix}}categories (
name,
user_id,
team_id,
{{if not .sqlite}}channel_id,{{end}}
channel_id,
create_at,
update_at,
delete_at