Merge branch 'master' of github.com:CatoTH/friendica-addons

Conflicts:
	dav/common/calendar_rendering.fnk.php
This commit is contained in:
Tobias Hößl 2012-08-11 08:08:23 +00:00
commit 7f4cb9cf06
4 changed files with 189 additions and 111 deletions

View file

@ -54,6 +54,7 @@ function dav_get_update_statements($from_version)
`namespace_id` int(11) unsigned NOT NULL,
`displayname` varchar(200) NOT NULL,
`description` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`needs_rebuild` TINYINT NOT NULL DEFAULT '1',
`uri` varchar(50) NOT NULL,
`ctag` int(11) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
@ -66,7 +67,7 @@ function dav_get_update_statements($from_version)
`carddata` mediumtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`uri` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`lastmodified` timestamp NULL DEFAULT NULL,
`manually_edited` tinyint(4) NOT NULL DEFAULT '0',
`needs_rebuild` tinyint(4) NOT NULL DEFAULT '0',
`manually_deleted` tinyint(4) NOT NULL DEFAULT '0',
`etag` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`size` int(10) unsigned NOT NULL,
@ -194,6 +195,7 @@ function dav_get_create_statements($except = array())
`namespace_id` int(11) unsigned NOT NULL,
`displayname` varchar(200) NOT NULL,
`description` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`needs_rebuild` TINYINT NOT NULL DEFAULT '1',
`uri` varchar(50) NOT NULL,
`ctag` int(11) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
@ -206,7 +208,7 @@ function dav_get_create_statements($except = array())
`carddata` mediumtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`uri` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`lastmodified` timestamp NULL DEFAULT NULL,
`manually_edited` tinyint(4) NOT NULL DEFAULT '0',
`needs_rebuild` tinyint(4) NOT NULL DEFAULT '0',
`manually_deleted` tinyint(4) NOT NULL DEFAULT '0',
`etag` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`size` int(10) unsigned NOT NULL,
@ -241,7 +243,7 @@ function dav_create_tables()
$errors = array();
global $db;
foreach ($stms as $st) {
foreach ($stms as $st) { // @TODO Friendica-dependent
$db->q($st);
if ($db->error) $errors[] = $db->error;
}
@ -261,10 +263,10 @@ function dav_upgrade_tables()
$errors = array();
global $db;
foreach ($stms as $st) {
foreach ($stms as $st) { // @TODO Friendica-dependent
$db->q($st);
if ($db->error) $errors[] = $db->error;
}
return $errors;
}
}