diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-21 15:03:33 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-21 15:03:33 -0800 |
commit | bb85e139f110d2d65a54f8aefbd3777a99d053e2 (patch) | |
tree | 01cd01d854dfcc02a9571a9f6aca828a639d7975 /install | |
parent | fcc92299ebaf5a723f31e44e2e16a6248bbdc04b (diff) | |
download | volse-hubzilla-bb85e139f110d2d65a54f8aefbd3777a99d053e2.tar.gz volse-hubzilla-bb85e139f110d2d65a54f8aefbd3777a99d053e2.tar.bz2 volse-hubzilla-bb85e139f110d2d65a54f8aefbd3777a99d053e2.zip |
more vcard work
Diffstat (limited to 'install')
-rw-r--r-- | install/schema_mysql.sql | 1 | ||||
-rw-r--r-- | install/schema_postgres.sql | 1 | ||||
-rw-r--r-- | install/update.php | 13 |
3 files changed, 14 insertions, 1 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 3f53ea907..bd7d9d79c 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -1059,6 +1059,7 @@ CREATE TABLE IF NOT EXISTS `profile` ( `photo` char(255) NOT NULL DEFAULT '', `thumb` char(255) NOT NULL DEFAULT '', `publish` tinyint(1) NOT NULL DEFAULT '0', + `profile_vcard` text NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `guid` (`profile_guid`,`uid`), KEY `uid` (`uid`), diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 1a51ff718..f8e4ecf5f 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -1043,6 +1043,7 @@ CREATE TABLE "profile" ( "photo" text NOT NULL, "thumb" text NOT NULL, "publish" numeric(1) NOT NULL DEFAULT '0', + "profile_vcard" text NOT NULL DEFAULT '', PRIMARY KEY ("id"), UNIQUE ("profile_guid","uid") diff --git a/install/update.php b/install/update.php index eca7011a8..34f23b049 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1186 ); +define( 'UPDATE_VERSION' , 1187 ); /** * @@ -2481,3 +2481,14 @@ function update_r1185() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1186() { + + $r1 = q("alter table profile add profile_vcard text not null default '' "); + + if($r1) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + + +}
\ No newline at end of file |