aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-01-07 21:18:20 +0100
committerMario Vavti <mario@mariovavti.com>2024-01-07 21:18:20 +0100
commit4713241444ca045c38c4d855a7e597be58c043df (patch)
treee30f08c8c34fea6f52680cf5c1f956d9c5e30570
parent4917170a0da0941f212d3bfdde4e19fcd8c36b88 (diff)
downloadvolse-hubzilla-4713241444ca045c38c4d855a7e597be58c043df.tar.gz
volse-hubzilla-4713241444ca045c38c4d855a7e597be58c043df.tar.bz2
volse-hubzilla-4713241444ca045c38c4d855a7e597be58c043df.zip
set a default value
-rw-r--r--Zotlabs/Update/_1260.php4
-rw-r--r--Zotlabs/Update/_1261.php2
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'");