function services_update_1 in Services 5
File
- ./
services.install, line 43 - This install creates the tables which are required by the services module
Code
function services_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("CREATE TABLE {services_timestamp_nonce} (\n timestamp varchar(32) NOT NULL default '',\n domain varchar(255) NOT NULL default '',\n nonce varchar(32) NOT NULL default ''\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */");
break;
case 'pgsql':
$ret[] = update_sql("CREATE TABLE {services_timestamp_nonce} (\n timestamp varchar(32) NOT NULL default '',\n domain varchar(255) NOT NULL default '',\n nonce varchar(32) NOT NULL default ''\n )");
break;
}
return $ret;
}