You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
603 B
19 lines
603 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
/**
|
|
* Temporary fix to set user.user_id to the same as user.id
|
|
*/
|
|
die('Remove the "die()" statement on line '.__LINE__.' to execute this script'.PHP_EOL);
|
|
if (PHP_SAPI != 'cli') {
|
|
die('This script can only be executed from the command line');
|
|
}
|
|
require_once __DIR__.'/../../public/main/inc/global.inc.php';
|
|
|
|
$dbh = mysql_connect(
|
|
$_configuration['db_host'],
|
|
$_configuration['db_user'],
|
|
$_configuration['db_password']
|
|
);
|
|
$db = mysql_select_db($_configuration['main_database']);
|
|
$sql = "UPDATE user SET user_id = id";
|
|
mysql_query($sql);
|
|
|