add vdata field for caldav
This commit is contained in:
		
							
								
								
									
										2
									
								
								boot.php
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								boot.php
									
									
									
									
									
								
							| @@ -50,7 +50,7 @@ define ( 'PLATFORM_NAME',           'hubzilla' ); | |||||||
| define ( 'RED_VERSION',             trim(file_get_contents('version.inc')) . 'H'); | define ( 'RED_VERSION',             trim(file_get_contents('version.inc')) . 'H'); | ||||||
| define ( 'ZOT_REVISION',            1     ); | define ( 'ZOT_REVISION',            1     ); | ||||||
|  |  | ||||||
| define ( 'DB_UPDATE_VERSION',       1154  ); | define ( 'DB_UPDATE_VERSION',       1155  ); | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * @brief Constant with a HTML line break. |  * @brief Constant with a HTML line break. | ||||||
|   | |||||||
| @@ -396,6 +396,7 @@ CREATE TABLE IF NOT EXISTS `event` ( | |||||||
|   `event_repeat` text NOT NULL, |   `event_repeat` text NOT NULL, | ||||||
|   `event_sequence` smallint(6) NOT NULL DEFAULT '0', |   `event_sequence` smallint(6) NOT NULL DEFAULT '0', | ||||||
|   `event_priority` smallint(6) NOT NULL DEFAULT '0', |   `event_priority` smallint(6) NOT NULL DEFAULT '0', | ||||||
|  |   `event_vdata` text NOT NULL, | ||||||
|   PRIMARY KEY (`id`), |   PRIMARY KEY (`id`), | ||||||
|   KEY `uid` (`uid`), |   KEY `uid` (`uid`), | ||||||
|   KEY `type` (`type`), |   KEY `type` (`type`), | ||||||
|   | |||||||
| @@ -392,6 +392,7 @@ CREATE TABLE "event" ( | |||||||
|   "event_repeat" text NOT NULL, |   "event_repeat" text NOT NULL, | ||||||
|   "event_sequence" smallint NOT NULL DEFAULT '0', |   "event_sequence" smallint NOT NULL DEFAULT '0', | ||||||
|   "event_priority" smallint NOT NULL DEFAULT '0', |   "event_priority" smallint NOT NULL DEFAULT '0', | ||||||
|  |   "event_vdata" text NOT NULL, | ||||||
|   PRIMARY KEY ("id") |   PRIMARY KEY ("id") | ||||||
| ); | ); | ||||||
| create index "event_uid_idx" on event ("uid"); | create index "event_uid_idx" on event ("uid"); | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| <?php | <?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; | ||||||
|  |  | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user