]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-sql_patches.php
More wrapper functions used, removed bigintval() which caused a lot trouble
[mailer.git] / inc / extensions / ext-sql_patches.php
index e4cec12cd3f4c75976f852b1aed6db5f24961008..fc66df9d3fc2fc17b07ed75e85f4b0a2ea8e89aa 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -54,7 +52,7 @@ setExtensionAlwaysActive('Y');
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
                // This depends on 'cache' now
-               addExtensionUpdateDependency('cache');
+               addExtensionDependency('cache');
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -117,7 +115,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.0.2': // SQL queries for v0.0.2
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `auto_purge` `auto_purge` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('ONE_DAY')*14)."");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `auto_purge` `auto_purge` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getOneDay()*14)."");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("In der Tabelle <strong>{?_MYSQL_PREFIX?}_config</strong> musste die Spalte <strong>auto_purge</strong> (autom. L&ouml;schen von Best&auml;tigungsmails angepasst werden (war auf dem Testsystem auf TINYINT(4) gesetzt.)");
@@ -183,7 +181,7 @@ switch (getExtensionMode()) {
                        case '0.1.1': // SQL queries for v0.1.1
                                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='Home-/Eingangsseite', descr='Stellen Sie hier ein, welcher Men&uuml;punkt (what-welcome ist Standart) als Einstiegspunkt in das Men&uuml;system genutzt werden soll und wie die automatische Weiterleitung in der Eingangsseite funktionieren soll.' WHERE `what`='config_home' LIMIT 1");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `index_delay` TINYINT(3) NOT NULL DEFAULT 0");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `index_cookie` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('ONE_DAY')*365)."");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `index_cookie` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getOneDay()*365)."");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Sie k&ouml;nnen nun <a href=\"{%url=modules.php?module=admin&amp;what=config_home%}\">hier</a> die Verz&ouml;gerungszeit in der <a href=\"{%url=index.php%}\">Eingangsseite</a> einstellen.");
@@ -509,7 +507,7 @@ PRIMARY KEY (`id`)
                                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `what`=NULL WHERE `what`=''");
 
                                // Make this depending on ext-menu
-                               addExtensionUpdateDependency('menu');
+                               addExtensionDependency('menu');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Schl&uuml;ssel in Admin-, Gast- und Mitgliedsmen&uuml; verbessert.");
@@ -580,7 +578,7 @@ PRIMARY KEY (`id`)
                                addMemberMenuSql('main','reflist','Ref-&Uuml;bersicht','N','Y',5);
 
                                // Depends on refback extension
-                               addExtensionUpdateDependency('refback');
+                               addExtensionDependency('refback');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ref-&Uuml;bersicht eingebaut. Diese h&auml;ngt von der Erweiterung <strong>refback</strong> ab.");
@@ -643,7 +641,7 @@ PRIMARY KEY (`filter_id`)
 
                        case '0.6.2': // SQL queries for v0.6.2
                                // Depends on refback extension
-                               addExtensionUpdateDependency('user');
+                               addExtensionDependency('user');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Abh&auml;ngigkeit von <u>ext-user</u> gesetzt.");
@@ -736,7 +734,7 @@ INDEX (`ip`)
 
                        case '0.7.1': // SQL queries for v0.7.1
                                // This update just depends on ext-timezone to make integration of an essential extension much easier
-                               addExtensionUpdateDependency('timezone');
+                               addExtensionDependency('timezone');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Zeitzone ist nun mit ext-timezone konfigurierbar.");