8 use Phinx\Migration\AbstractMigration;
11 public function up() {
14 $tableName =
"cucmsdocs";
16 if ($this->hasTable($tableName)) {
19 $this->query(
"insert into cucmsdocs (docsname, docsdesc, docstype, 20 docsdisplaylink, docsdisplaytext, docsdefaultavail, 21 docsresponsetype, docstitle, docsmaintsection, 22 docsmaintsort, docstarget, docstargetname) 23 values ('mblRDCInstructions', 'Helpful instructions and/or notice for the user.', 24 '2', 'Y', 'Instructions', 'Y', 'N', '', 'Mobile', '65', '', '')");
25 print
"Inserted 'mblRDCInstructions' into cucmsdocs.\n";
27 print
"docs table doesn't exist.\n";
31 public function down() {
34 $tableName =
"cucmsdocs";
36 if ($this->hasTable($tableName)) {
38 $this->query(
"delete from cucmsdocs where docsname = 'mblRDCInstructions'");
39 print
"Delete 'mblRDCInstructions' from cucmsdocs.\n";
41 print
"docs table doesn't exist.\n";