Increase COL_CREDIT_SUBMITTED to 255

pull/3092/head
Peter Goodhall 2024-04-30 15:55:36 +01:00
rodzic 471c83a8b8
commit a29bf27ed1
2 zmienionych plików z 28 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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.";
}
}