Increase the lotw password size in the database

Fixes #3244
pull/3260/head
Peter Goodhall 2025-01-07 13:22:08 +00:00
rodzic a052951bfd
commit 5bbeb0962d
2 zmienionych plików z 32 dodań i 1 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
*/
$config['migration_version'] = 191;
$config['migration_version'] = 192;
/*
|--------------------------------------------------------------------------

Wyświetl plik

@ -0,0 +1,31 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_increase_lotwpass_field_val extends CI_Migration
{
public function up()
{
// In the user table increase the length of the user_lotw_password field to 255
$this->dbforge->modify_column('users', array(
'user_lotw_password' => array(
'name' => 'user_lotw_password',
'type' => 'VARCHAR',
'constraint' => '255',
'null' => TRUE
)
));
}
public function down()
{
// Reset it back to 64
$this->dbforge->modify_column('users', array(
'user_lotw_password' => array(
'name' => 'user_lotw_password',
'type' => 'VARCHAR',
'constraint' => '64',
'null' => TRUE
)
));
}
}