diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-23 22:32:46 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-23 22:32:46 -0700 |
commit | 0f3c2c4b2448694da4f0b350c1814fb5df973ce9 (patch) | |
tree | d6e6efd2cdb2aa3aabebf7221697c89622c67d55 /install | |
parent | b553ffd55d04d11c0802b1688d74e96f3ed01ddf (diff) | |
download | volse-hubzilla-0f3c2c4b2448694da4f0b350c1814fb5df973ce9.tar.gz volse-hubzilla-0f3c2c4b2448694da4f0b350c1814fb5df973ce9.tar.bz2 volse-hubzilla-0f3c2c4b2448694da4f0b350c1814fb5df973ce9.zip |
add vdata field for caldav
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 | 11 |
3 files changed, 12 insertions, 1 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index a21e5f48a..c78259e41 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -396,6 +396,7 @@ CREATE TABLE IF NOT EXISTS `event` ( `event_repeat` text NOT NULL, `event_sequence` smallint(6) NOT NULL DEFAULT '0', `event_priority` smallint(6) NOT NULL DEFAULT '0', + `event_vdata` text NOT NULL, PRIMARY KEY (`id`), KEY `uid` (`uid`), KEY `type` (`type`), diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 26d7d79a3..6145e9ccb 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -392,6 +392,7 @@ CREATE TABLE "event" ( "event_repeat" text NOT NULL, "event_sequence" smallint NOT NULL DEFAULT '0', "event_priority" smallint NOT NULL DEFAULT '0', + "event_vdata" text NOT NULL, PRIMARY KEY ("id") ); create index "event_uid_idx" on event ("uid"); diff --git a/install/update.php b/install/update.php index bef754570..500a89fc0 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1154 ); +define( 'UPDATE_VERSION' , 1155 ); /** * @@ -1865,3 +1865,12 @@ function update_r1153() { } + +function update_r1154() { + + $r = q("ALTER TABLE event ADD event_vdata text NOT NULL "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + +}
\ No newline at end of file |