diff options
-rw-r--r-- | Zotlabs/Update/_1260.php | 4 | ||||
-rw-r--r-- | Zotlabs/Update/_1261.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Update/_1260.php b/Zotlabs/Update/_1260.php index 026a5cc4d..eac2bae8b 100644 --- a/Zotlabs/Update/_1260.php +++ b/Zotlabs/Update/_1260.php @@ -18,8 +18,8 @@ class _1260 { dbq("START TRANSACTION"); - $r1 = dbq("ALTER TABLE channel ADD channel_epubkey text NOT NULL"); - $r2 = dbq("ALTER TABLE channel ADD channel_eprvkey text NOT NULL"); + $r1 = dbq("ALTER TABLE channel ADD channel_epubkey text NOT NULL DEFAULT ''"); + $r2 = dbq("ALTER TABLE channel ADD channel_eprvkey text NOT NULL DEFAULT ''"); $channels = dbq("select channel_id from channel where true"); if ($channels) { diff --git a/Zotlabs/Update/_1261.php b/Zotlabs/Update/_1261.php index 8be7f96ab..f99c49ebd 100644 --- a/Zotlabs/Update/_1261.php +++ b/Zotlabs/Update/_1261.php @@ -20,7 +20,7 @@ class _1261 { dbq("START TRANSACTION"); - $r1 = dbq("ALTER TABLE xchan ADD xchan_epubkey text NOT NULL"); + $r1 = dbq("ALTER TABLE xchan ADD xchan_epubkey text NOT NULL DEFAULT ''"); if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { $r2 = dbq("ALTER TABLE xchan ADD xchan_updated timestamp NOT NULL DEFAULT '0001-01-01 00:00:00'"); |