7 use Phinx\Migration\AbstractMigration;
14 public function up() {
16 $hasTableCUA = $this->hasTable(
"cuadminallow");
17 $hasTableCUP = $this->hasTable(
"cuadminprogs");
23 SELECT sua.cu, sua.user_name, sua.program FROM cuadminallow sua 24 WHERE LOWER(program)='usersupport' 25 AND sua.user_name=cua.user_name";
27 INSERT INTO cuadminallow ( 28 SELECT DISTINCT ON (cua.user_name) cua.cu, cua.user_name, 'userSupport' 30 WHERE LOWER(program) IN ('addchange', 'usermfa') 31 AND NOT EXISTS ($sqlSub))";
36 DELETE FROM cuadminallow 37 WHERE LOWER(program) IN ('addchange', 'usermfa')";
45 UPDATE cuadminprogs SET displaytext='User Management Screens' 46 WHERE LOWER(program)='usersupport'";
51 DELETE FROM cuadminprogs 52 WHERE LOWER(program) IN ('addchange', 'usermfa')";
62 public function down() {