diff options
author | Mario <mario@mariovavti.com> | 2022-12-27 10:33:29 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-27 10:33:29 +0000 |
commit | 3101c6540a3992a95369abefd3bafa3abf36db9e (patch) | |
tree | 367ece1200528ae205492f09a9ded0d475a89149 /install/schema_postgres.sql | |
parent | d2d6be73b8428c11c2461961a920ed3e3e656f64 (diff) | |
download | volse-hubzilla-3101c6540a3992a95369abefd3bafa3abf36db9e.tar.gz volse-hubzilla-3101c6540a3992a95369abefd3bafa3abf36db9e.tar.bz2 volse-hubzilla-3101c6540a3992a95369abefd3bafa3abf36db9e.zip |
add workerq to the install schemas
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r-- | install/schema_postgres.sql | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 96d0cc33c..5a97ebca1 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -1652,4 +1652,17 @@ CREATE TABLE oauth_jwt ( public_key VARCHAR(2000) NOT NULL ); - +CREATE TABLE IF NOT EXISTS workerq ( + workerq_id bigserial NOT NULL, + workerq_priority smallint, + workerq_reservationid varchar(25) DEFAULT NULL, + workerq_processtimeout timestamp NOT NULL DEFAULT '0001-01-01 00:00:00', + workerq_data text, + workerq_uuid UUID NOT NULL, + workerq_cmd text NOT NULL DEFAULT '', + PRIMARY KEY (workerq_id) +) +CREATE INDEX idx_workerq_priority ON workerq (workerq_priority); +CREATE INDEX idx_workerq_reservationid ON workerq (workerq_reservationid); +CREATE INDEX idx_workerq_processtimeout ON workerq (workerq_processtimeout); +CREATE INDEX idx_workerq_uuid ON workerq (workerq_uuid); |