Skip to content

Commit

Permalink
Increase the lotw password size in the database
Browse files Browse the repository at this point in the history
Fixes #3244
  • Loading branch information
magicbug committed Jan 7, 2025
1 parent a052951 commit 5bbeb09
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/config/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
|
*/

$config['migration_version'] = 191;
$config['migration_version'] = 192;

/*
|--------------------------------------------------------------------------
Expand Down
31 changes: 31 additions & 0 deletions application/migrations/192_increase_lotwpass_field_val.php
Original file line number Diff line number Diff line change
@@ -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
)
));
}
}

0 comments on commit 5bbeb09

Please sign in to comment.