8 use Phinx\Migration\AbstractMigration;
16 public function up() {
19 $exists = $this->hasTable(
"cufeaturegate");
23 CREATE TABLE cufeaturegate ( 24 feature character varying(10) NOT NULL, 25 description character varying(255), 26 enabled_all character(1), 27 enabled_cu character varying 29 $sqlRs = $this->query($sql);
32 $sql =
"COMMENT ON TABLE cufeaturegate IS 'Table to help the gating of features into master.';";
33 $sqlRs = $this->query($sql);
35 $sql =
"COMMENT ON COLUMN cufeaturegate.feature IS 'A developer created Feature Code to identify feature being gated.';";
36 $sqlRs = $this->query($sql);
38 $sql =
"COMMENT ON COLUMN cufeaturegate.description IS 'More verbose description to help other understand the feature.';";
39 $sqlRs = $this->query($sql);
41 $sql =
"COMMENT ON COLUMN cufeaturegate.enabled_all IS 'Global feature setting. {Y}-Enabled All, {N}-Not enabled, {O}-Off for everyone.';";
42 $sqlRs = $this->query($sql);
44 $sql =
"COMMENT ON COLUMN cufeaturegate.enabled_cu IS 'Enabled list for credit unions.';";
45 $sqlRs = $this->query($sql);
48 $sql =
"ALTER TABLE ONLY cufeaturegate ADD CONSTRAINT pk_cufeaturegate_feature PRIMARY KEY (feature);";
49 $sqlRs = $this->query($sql);
59 public function down() {
61 $this->dropTable(
"cufeaturegate");