mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Implement channels table.
This commit is contained in:
parent
e02644a45b
commit
8258468f7b
1 changed files with 14 additions and 0 deletions
|
@ -10,4 +10,18 @@ DROP INDEX IF EXISTS users_id_idx;
|
|||
|
||||
CREATE INDEX IF NOT EXISTS username_idx ON users (username ASC);
|
||||
|
||||
--rollback DROP INDEX IF EXISTS username_idx;
|
||||
--rollback DROP TABLE IF EXISTS users;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS channels (
|
||||
uploader_id VARCHAR(24) NOT NULL,
|
||||
uploader VARCHAR(100) NULL,
|
||||
uploader_avatar VARCHAR(150) NULL,
|
||||
verified BOOL NULL,
|
||||
CONSTRAINT channels_pkey PRIMARY KEY (uploader_id)
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS channels_uploader_idx ON channels (uploader ASC);
|
||||
|
||||
--rollback DROP INDEX IF EXISTS channels_uploader_idx;
|
||||
--rollback DROP TABLE IF EXISTS channels;
|
||||
|
|
Loading…
Reference in a new issue