7 use Phinx\Migration\AbstractMigration;
13 public function up() {
15 $cuList = $this->fetchAll(
'SELECT cu FROM cuadmin');
16 foreach ($cuList as $cuListItem) {
17 $cu = strtolower(trim($cuListItem[
'cu']));
18 $accountHistoryTableName =
"{$cu}accounthistory";
19 if ($this->hasTable($accountHistoryTableName)) {
20 $accountHistoryTable = $this->table($accountHistoryTableName);
21 $accountHistoryTable->changeColumn(
'checknumber',
'string', [
'null' =>
true,
'limit' => 15])->save();
25 if ($this->hasTable(
'cutronah')) {
26 $cutronahTable = $this->table(
'cutronah');
27 $cutronahTable->changeColumn(
'checknumber',
'string', [
'null' =>
true,
'limit' => 15])->save();
31 public function down() {