Increase COL_CREDIT_SUBMITTED to 255

This commit is contained in:
Peter Goodhall 2024-04-30 15:55:36 +01:00
parent 471c83a8b8
commit a29bf27ed1
2 changed files with 28 additions and 1 deletions

View File

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

View File

@ -0,0 +1,27 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* Increase COL_CREDIT_SUBMITTED field size to 255
*/
class Migration_qso_table_credit_submitted_increase extends CI_Migration {
public function up()
{
$fields = array(
'COL_CREDIT_SUBMITTED' => array(
'name' => 'COL_CREDIT_SUBMITTED',
'type' => 'VARCHAR',
'constraint' => '255',
)
);
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
}
public function down()
{
echo "Not possible, sorry.";
}
}