7 use Phinx\Migration\AbstractMigration;
13 public function up() {
18 $cuList = $this->fetchAll(
'SELECT cu FROM cuadmin');
19 foreach ($cuList as $cuListItem) {
20 $cu = strtolower(trim($cuListItem[
'cu']));
21 $userAccountsTable =
"{$cu}useraccounts";
22 if ($this->hasTable($userAccountsTable)) {
23 $sql =
"update $userAccountsTable set ext_withdraw = 'false' where recordtype = 'L'";
30 public function down() {
35 $cuList = $this->fetchAll(
'SELECT cu FROM cuadmin');
36 foreach ($cuList as $cuListItem) {
37 $cu = strtolower(trim($cuListItem[
'cu']));
38 $userAccountsTable =
"{$cu}useraccounts";
39 if ($this->hasTable($userAccountsTable)) {
40 $sql =
"update $userAccountsTable set ext_withdraw = 'true' where recordtype = 'L'";