diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-08-31 20:26:31 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-08-31 20:26:31 +0200 |
commit | d377660b5a8800fdce33bbafcc166a8b2a6076d1 (patch) | |
tree | 4163e38b71ff0c2853b78d34bbcdc12725024b27 /Zotlabs/Update | |
parent | c5ce9b069963edacdc4ee961c0c8632b71244d13 (diff) | |
download | volse-hubzilla-d377660b5a8800fdce33bbafcc166a8b2a6076d1.tar.gz volse-hubzilla-d377660b5a8800fdce33bbafcc166a8b2a6076d1.tar.bz2 volse-hubzilla-d377660b5a8800fdce33bbafcc166a8b2a6076d1.zip |
update 1218: missing default value for pg
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r-- | Zotlabs/Update/_1218.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Update/_1218.php b/Zotlabs/Update/_1218.php index 67d8b49a5..07c7dba20 100644 --- a/Zotlabs/Update/_1218.php +++ b/Zotlabs/Update/_1218.php @@ -7,9 +7,9 @@ class _1218 { function run() { if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { - $r1 = q("ALTER TABLE hubloc add hubloc_id_url text NOT NULL"); + $r1 = q("ALTER TABLE hubloc add hubloc_id_url text NOT NULL DEFAULT ''"); $r2 = q("create index \"hubloc_id_url\" on hubloc (\"hubloc_id_url\")"); - $r3 = q("ALTER TABLE hubloc add hubloc_site_id text NOT NULL"); + $r3 = q("ALTER TABLE hubloc add hubloc_site_id text NOT NULL DEFAULT ''"); $r4 = q("create index \"hubloc_site_id\" on hubloc (\"hubloc_site_id\")"); $r = $r1 && $r2 && $r3 && $r4; |