Odyssey
2019110400_updUserEventsTitle.php
1 <?php
2 /**
3  * Notes:
4  * 1. Anything complicated needs to be done with SQL.
5  * 2. Always have a check to know if the migration needs to occur (up or down).
6  * 3. Use up() and down(), not change(), because of the SQL
7  */
8 use Phinx\Migration\AbstractMigration;
9 
10 class updUserEventsTitle extends AbstractMigration {
11 
12  /**
13  * FD 1148, GitHub 3182, Change "Audit Member Changes Report" to "View User Events"
14  */
15  public function up() {
16 
17  echo "Updating CU Admin user events title.\n";
18  $this->query("update cuadminprogs set displaytext = 'View User Events Report' where program = 'AuditMemChg'");
19  }
20 
21  public function down() {
22  // Nothing to do
23  }
24 }
25