1
0
Fork 0

API: API is reworked in many parts so that it should be compatible to more statusnet clients then before (like AndStatus)

This commit is contained in:
Michael Vogel 2013-12-15 23:00:47 +01:00
commit 5130b19f5e
5 changed files with 382 additions and 275 deletions

View file

@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1166 );
define( 'UPDATE_VERSION' , 1167 );
/**
*
@ -1526,3 +1526,18 @@ function update_1165() {
return UPDATE_SUCCESS;
}
function update_1166() {
$r = q("CREATE TABLE IF NOT EXISTS `unique_contacts` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
`url` CHAR(255) NOT NULL,
`nick` CHAR(255) NOT NULL,
`name` CHAR(255) NOT NULL,
`avatar` CHAR(255) NOT NULL,
INDEX (`url`)
) ENGINE = MYISAM DEFAULT CHARSET=utf8 ");
if (!$r)
return UPDATE_FAILED;
return UPDATE_SUCCESS;
}