blob: 13b2af98c490d80ac6c43f0e46e83b04ca49540e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?
Class Step00267PreliminaryAccounts extends Migration {
function description()
{
return 'switches all entries with auth_plugin=null to "standard"';
}
function up()
{
DBManager::get()->exec("UPDATE auth_user_md5 SET auth_plugin='standard' WHERE auth_plugin IS NULL");
DBManager::get()->exec("ALTER TABLE `auth_user_md5` CHANGE `auth_plugin` `auth_plugin` VARCHAR(64) NULL DEFAULT 'standard'");
}
}
|