Use BIGSERIAL instead of SERIAL

This commit is contained in:
Kavin 2023-08-14 09:16:01 +01:00
parent 8b8b8af99b
commit 1d08fda665
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS users (
id SERIAL NOT NULL,
id BIGSERIAL NOT NULL,
password TEXT NULL,
session_id VARCHAR(36) NULL,
username VARCHAR(24) NULL UNIQUE,
@ -35,7 +35,7 @@ CREATE INDEX IF NOT EXISTS pubsub_id_idx ON pubsub (id ASC);
--rollback DROP TABLE IF EXISTS pubsub;
CREATE TABLE IF NOT EXISTS playlists (
id SERIAL NOT NULL,
id BIGSERIAL NOT NULL,
name VARCHAR(200) NULL,
playlist_id UUID NOT NULL UNIQUE DEFAULT gen_random_uuid(),
short_description VARCHAR(100) NULL,