aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/schema_mysql.sql1
-rw-r--r--install/schema_postgres.sql1
-rw-r--r--install/update.php11
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