fix: where clause of material views
This commit is contained in:
parent
6c0c6c7ad7
commit
a4b791d6cb
1 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS global_timeline AS
|
||||||
AND "createdAt" IS NOT NULL
|
AND "createdAt" IS NOT NULL
|
||||||
AND "userId" IS NOT NULL
|
AND "userId" IS NOT NULL
|
||||||
AND "userHost" IS NOT NULL
|
AND "userHost" IS NOT NULL
|
||||||
AND "visibility" = "public"
|
AND "visibility" = 'public'
|
||||||
PRIMARY KEY ("createdAtDate", "createdAt", "userId", "userHost", "visibility");
|
PRIMARY KEY ("createdAtDate", "createdAt", "userId", "userHost", "visibility");
|
||||||
|
|
||||||
CREATE MATERIALIZED VIEW IF NOT EXISTS local_timeline AS
|
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
|
WHERE "createdAtDate" IS NOT NULL
|
||||||
AND "createdAt" IS NOT NULL
|
AND "createdAt" IS NOT NULL
|
||||||
AND "userId" IS NOT NULL
|
AND "userId" IS NOT NULL
|
||||||
AND "userHost" = "local"
|
AND "userHost" = 'local'
|
||||||
AND "visibility" = "public"
|
AND "visibility" = 'public'
|
||||||
PRIMARY KEY ("createdAtDate", "createdAt", "userId", "userHost", "visibility");
|
PRIMARY KEY ("createdAtDate", "createdAt", "userId", "userHost", "visibility");
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS home_timeline (
|
CREATE TABLE IF NOT EXISTS home_timeline (
|
||||||
|
|
Loading…
Reference in a new issue