7 use Phinx\Migration\AbstractMigration;
9 class Tron2 extends AbstractMigration
19 $tableExists = $this->hasTable( $name );
23 $sql =
"DROP TABLE cutronus";
24 $rows = $this->query( $sql );
29 if ( !$tableExists ) {
31 print
"Creating table $name\n";
35 $sql =
"CREATE TABLE cutronus ( 36 runslot character varying(10) NOT NULL, 38 user_id integer NOT NULL, 39 shuffle double precision, 40 sched_id integer NOT NULL, 41 accountnumber character(12) NOT NULL, 42 PRIMARY KEY (runslot, cu, user_id, sched_id, accountnumber) 46 $rows = $this->query( $sql );
55 public function down()