aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-23 22:32:46 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-23 22:32:46 -0700
commit0f3c2c4b2448694da4f0b350c1814fb5df973ce9 (patch)
treed6e6efd2cdb2aa3aabebf7221697c89622c67d55
parentb553ffd55d04d11c0802b1688d74e96f3ed01ddf (diff)
downloadvolse-hubzilla-0f3c2c4b2448694da4f0b350c1814fb5df973ce9.tar.gz
volse-hubzilla-0f3c2c4b2448694da4f0b350c1814fb5df973ce9.tar.bz2
volse-hubzilla-0f3c2c4b2448694da4f0b350c1814fb5df973ce9.zip
add vdata field for caldav
-rwxr-xr-xboot.php2
-rw-r--r--install/schema_mysql.sql1
-rw-r--r--install/schema_postgres.sql1
-rw-r--r--install/update.php11
4 files changed, 13 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 5a564bb9d..8e0e3b004 100755
--- a/boot.php
+++ b/boot.php
@@ -50,7 +50,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'H');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1154 );
+define ( 'DB_UPDATE_VERSION', 1155 );
/**
* @brief Constant with a HTML line break.
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