// Version number
setThisExtensionVersion('0.0.9');
-// Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
+// Version history array (add more with , '0.0.1' and so on)
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
// Keep this extension always active!
setExtensionAlwaysActive('Y');
switch (getExtensionMode()) {
- case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+ case 'register': // Do stuff when installation is running
// SQL commands to run
addExtensionSql('');
case '0.0.4': // SQL queries for v0.0.4
// SQL commands to run
addDropTableSql('mediadata');
- addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_mediadata` (
+ addCreateTableSql('mediadata', "
`media_key` VARCHAR(255) NOT NULL DEFAULT '',
`media_value` VARCHAR(255) NOT NULL DEFAULT '',
-PRIMARY KEY (`media_key`)
-) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci");
+PRIMARY KEY (`media_key`)",
+ 'Media data key->value');
// Add auto-check file
addIncludeToPool('extension', 'inc/gen_mediadata.php');
break;
case '0.0.7': // SQL queries for v0.0.7
- addConfigAddSql('mt_start', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
- addConfigAddSql('mt_stage', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 500");
+ addConfigAddSql('mt_start', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
+ addConfigAddSql('mt_stage', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 500');
addAdminMenuSql('setup', 'config_mediadata', 'Mediendaten', 'Stellen Sie allgemeine Einstellungen zu den Mediendaten ein.', 10);
// Update notes (these will be set as task text!)
break;
case '0.0.9': // SQL queries for v0.0.9
- addGuestMenuSql('main','mediadata','Mediendaten','N','N',3);
+ addGuestMenuSql('main', 'mediadata', 'Mediendaten', 3);
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Menüpunkt wird durch diese Erweiterung generiert.");