7 use Phinx\Migration\AbstractMigration;
14 public function up() {
16 $cuList = $this->fetchAll(
'SELECT cu FROM cuadmin');
17 for ($i = 0; $i < count($cuList); $i ++) {
18 $cu = strtolower( trim( $cuList[$i][
"cu"] ) );
19 $tableAcct = $this->hasTable(
"{$cu}accountbalance");
20 $tableLoan = $this->hasTable(
"{$cu}loanbalance");
23 $sql =
"ALTER TABLE {$cu}accountbalance DROP COLUMN stale";
28 $sql =
"ALTER TABLE {$cu}loanbalance DROP COLUMN stale";
39 public function down() {