i18nstrings.install in Internationalization 5.3
File
i18nstrings/i18nstrings.install
View source
<?php
function i18nstrings_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("\nCREATE TABLE {i18n_locale} (\n `strid` varchar(255) NOT NULL,\n `lid` int(10) NOT NULL,\n `text` text NOT NULL,\n PRIMARY KEY (`strid`)\n) /*!40100 DEFAULT CHARACTER SET UTF8 */ \n");
break;
default:
drupal_set_message(t('Database type not supported. This module, i18nstrings, needs manual installation.'));
}
}
function i18nstrings_uninstall() {
db_query('DROP TABLE {i18n_locale}');
}
function i18nstrings_update_1() {
$ret = array();
$ret[] = update_sql("CREATE TABLE {i18n_locale} (\n `strid` varchar(255) NOT NULL,\n `lid` int(10) NOT NULL,\n `text` text NOT NULL,\n PRIMARY KEY (`strid`)\n) /*!40100 DEFAULT CHARACTER SET UTF8 */");
return $ret;
}