7 use Phinx\Migration\AbstractMigration;
15 public function up() {
18 $exists = $this->hasTable(
"cu_calendar");
22 CREATE TABLE cu_calendar ( 23 cu character varying(10) NOT NULL, 24 year character varying(4) NOT NULL, 27 $sqlRs = $this->query($sql);
30 $sql =
"ALTER TABLE ONLY cu_calendar ADD CONSTRAINT cu_calendar_pkey PRIMARY KEY (cu, year);";
31 $sqlRs = $this->query($sql);
40 public function down() {
42 $this->dropTable(
"cu_calendar");