Commit f74e6715 authored by drsassafras's avatar drsassafras

[REM][DB] password field tidy-up II.b

parent 6c4c28ab
......@@ -1771,6 +1771,7 @@ installer/schema/20160627_remove_more_unwanted_files_tiki.php -text
installer/schema/20160817_fix_dymanic_list_field_values_tiki.php -text
installer/schema/20160914_extwiki_missing_columns_fix_tiki.php -text
installer/schema/20160915_extwiki_indexname_length_tiki.sql -text
installer/schema/20161109_remove_old_password_tiki.php -text
installer/schema/999999991_decode_pages_sources_tiki.php -text
installer/schema/99999999_image_plugins_kill_tiki.php -text
installer/schema/index.php -text
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: $
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
header("location: index.php");
* This removes the now unused password filed from the database, if it exists.
* @param $installer
function upgrade_20161109_remove_old_password_tiki($installer)
$query = "SHOW COLUMNS FROM `users_users` LIKE 'password'";
$result = $installer->query($query, array());
if ($result->numRows()) {
$query = 'ALTER TABLE `users_users` DROP `password`';
$installer->query($query, array());
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment