mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-12 21:30:29 +05:30
Implement channels table.
This commit is contained in:
parent
e02644a45b
commit
8258468f7b
@ -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 New Issue
Block a user