fix: where clause of material views

This commit is contained in:
Namekuji 2023-08-12 03:15:20 -04:00
parent 6c0c6c7ad7
commit a4b791d6cb
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -113,7 +113,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS global_timeline AS
AND "createdAt" IS NOT NULL
AND "userId" IS NOT NULL
AND "userHost" IS NOT NULL
AND "visibility" = "public"
AND "visibility" = 'public'
PRIMARY KEY ("createdAtDate", "createdAt", "userId", "userHost", "visibility");
CREATE MATERIALIZED VIEW IF NOT EXISTS local_timeline AS
@ -121,8 +121,8 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS local_timeline AS
WHERE "createdAtDate" IS NOT NULL
AND "createdAt" IS NOT NULL
AND "userId" IS NOT NULL
AND "userHost" = "local"
AND "visibility" = "public"
AND "userHost" = 'local'
AND "visibility" = 'public'
PRIMARY KEY ("createdAtDate", "createdAt", "userId", "userHost", "visibility");
CREATE TABLE IF NOT EXISTS home_timeline (