Author: ralfbecker
New Revision: 55607
URL: http://svn.stylite.de/viewvc/egroupware?rev=55607&view=rev
Log:
api update script to deinstall on longer existing EMailAdmin and create it’s 14.1 tables, if they are not already there (update from before 14.1)
Added:
trunk/egroupware/api/setup/tables_update.inc.php (with props)
— trunk/egroupware/api/setup/tables_update.inc.php (added)
+++ trunk/egroupware/api/setup/tables_update.inc.php Sun Apr 3 10:14:53 2016
@@ -1,0 +1,43 @@
+<?php
+/**
-
-
-
- Update scripts from 16.1 onwards
-
-
-
-
-
-
- */
-
+/**
-
- Remove rests of EMailAdmin or install 14.1 tables for update from before 14.1
-
-
- 14.3.907 is the version set by setup, if api is not installed in 16.1 upgrade
-
-
- */
+function api_upgrade14_3_907()
+{
- // check if EMailAdmin tables are there and create them if not
- $tables = $GLOBALS[‘egw_setup’]->db->table_names(true);
- $phpgw_baseline = array();
- include (DIR.’/tables_current.inc.php’);
- foreach($phpgw_baseline as $table => $definition)
- {
-
if (!in_array($table, $tables))
-
{
-
$GLOBALS['egw_setup']->oProc->CreateTable($table, $definition);
-
}
- }
-
- // uninstall no longer existing EMailAdmin
- if (in_array(‘egw_emailadmin’, $tables))
- {
-
$GLOBALS['egw_setup']->oProc->DropTable('egw_emailadmin');
- }
- $GLOBALS[‘egw_setup’]->deregister_app(‘emailadmin’);
-
- return $GLOBALS[‘setup_info’][‘api’][‘currentver’] = ‘16.1’;
+}
Propchange: trunk/egroupware/api/setup/tables_update.inc.php
svn:eol-style = native
Propchange: trunk/egroupware/api/setup/tables_update.inc.php
svn:keywords = Author Date Id Rev URL
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs