function textimage_install in Textimage 5
Same name and namespace in other branches
- 5.2 textimage.install \textimage_install()
- 6.2 textimage.install \textimage_install()
- 7.3 textimage.install \textimage_install()
File
- ./
textimage.install, line 3
Code
function textimage_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query('CREATE TABLE {textimage_preset} (
pid INT UNSIGNED NOT NULL PRIMARY KEY,
name VARCHAR(255) NOT NULL DEFAULT \'\',
settings TEXT NOT NULL )
/*!40100 DEFAULT CHARACTER SET utf8 */');
break;
case 'pgsql':
db_query('CREATE TABLE {textimage_preset} (
pid INTEGER NOT NULL CHECK (presetid > 0),
name VARCHAR(255) NOT NULL DEFAULT \'\',
settings TEXT NOT NULL DEFAULT \'\'
PRIMARY KEY (presetid));');
db_query("CREATE SEQUENCE textimage_preset_presetid_seq INCREMENT 1 START 1;");
break;
}
}