From 02763811b35eb6be41db8071acb4e07725cac697 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 16 Apr 2018 23:34:47 -0700 Subject: missing update file in the previous update commit --- Zotlabs/Update/_1211.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Zotlabs/Update/_1211.php (limited to 'Zotlabs/Update/_1211.php') diff --git a/Zotlabs/Update/_1211.php b/Zotlabs/Update/_1211.php new file mode 100644 index 000000000..739a5670d --- /dev/null +++ b/Zotlabs/Update/_1211.php @@ -0,0 +1,26 @@ + Date: Sun, 29 Apr 2018 17:50:35 -0700 Subject: Update issues on postgres --- Zotlabs/Update/_1211.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Update/_1211.php') diff --git a/Zotlabs/Update/_1211.php b/Zotlabs/Update/_1211.php index 739a5670d..7068ecbd3 100644 --- a/Zotlabs/Update/_1211.php +++ b/Zotlabs/Update/_1211.php @@ -8,7 +8,7 @@ class _1211 { if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { $r1 = q("ALTER TABLE channel ADD channel_active timestamp NOT NULL DEFAULT '0001-01-01 00:00:00' "); - $r2 = q("create index \"channel_active\" on channel_active \"channel_active\""); + $r2 = q("create index \"channel_active\" on channel_active (\"channel_active\")"); $r = ($r1 && $r2); } -- cgit v1.2.3 From 875597cde1b87709751d7aab98da3aa6a92ab664 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 30 Apr 2018 11:51:14 +0200 Subject: fix another pgsql update error --- Zotlabs/Update/_1211.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Update/_1211.php') diff --git a/Zotlabs/Update/_1211.php b/Zotlabs/Update/_1211.php index 7068ecbd3..26e25536d 100644 --- a/Zotlabs/Update/_1211.php +++ b/Zotlabs/Update/_1211.php @@ -8,7 +8,7 @@ class _1211 { if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { $r1 = q("ALTER TABLE channel ADD channel_active timestamp NOT NULL DEFAULT '0001-01-01 00:00:00' "); - $r2 = q("create index \"channel_active\" on channel_active (\"channel_active\")"); + $r2 = q("create index \"channel_active_idx\" on channel (\"channel_active\")"); $r = ($r1 && $r2); } -- cgit v1.2.3