aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1261.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Update/_1261.php')
-rw-r--r--Zotlabs/Update/_1261.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Update/_1261.php b/Zotlabs/Update/_1261.php
index f99c49ebd..43fd0b098 100644
--- a/Zotlabs/Update/_1261.php
+++ b/Zotlabs/Update/_1261.php
@@ -20,12 +20,12 @@ class _1261 {
dbq("START TRANSACTION");
- $r1 = dbq("ALTER TABLE xchan ADD xchan_epubkey text NOT NULL DEFAULT ''");
-
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r1 = dbq("ALTER TABLE xchan ADD xchan_epubkey text NOT NULL DEFAULT ''");
$r2 = dbq("ALTER TABLE xchan ADD xchan_updated timestamp NOT NULL DEFAULT '0001-01-01 00:00:00'");
}
else {
+ $r1 = dbq("ALTER TABLE xchan ADD xchan_epubkey text NOT NULL");
$r2 = dbq("ALTER TABLE xchan ADD xchan_updated datetime NOT NULL DEFAULT '0001-01-01 00:00:00'");
}