8 use Phinx\Migration\AbstractMigration;
11 public function up() {
14 $tableName =
"cucmsdocs";
16 if ($this->hasTable($tableName)) {
19 $this->query(
"select setval('cucmsdocs_docsid_seq', 1000, true)");
22 $this->query(
"insert into cucmsdocs values ('66', 'ActivateMemberPin', 'Used to gather information from the member to activate. Note: Certain form fields are required as named.', 23 '3', '', '', 'Y', 'N', 'ACTIVATE ACCOUNT PIN', 'Member Forms', '15', '', '')");
24 print
"Inserted 'ActivateMemberPin' into cucmsdocs.";
26 print
"docs table doesn't exist.\n";
30 public function down() {
33 $tableName =
"cucmsdocs";
35 if ($this->hasTable($tableName)) {
37 $this->query(
"delete from cucmsdocs where docsid = 66");
38 print
"Delete 'ActivateMemberPin' from cucmsdocs.";
40 print
"docs table doesn't exist.\n";