public function main()
 {
     parent::main();
     $this->createDB();
     $this->createTables();
     $this->insertInitData();
 }
Example #2
0
 public function main()
 {
     parent::main();
     $this->checkIfDBExists();
     $this->checkVersion();
     $altered = $this->updateStructure();
     $this->updateVersion();
 }
 public function main()
 {
     $order = $this->getInitImportOrder();
     parent::main();
     $conn = Doctrine_Manager::connection($this->rdbms . "://fake@fake/127.0.0.1:9876/fake");
     $sql = $this->printSQLHead();
     $sql .= "\n/*           SQL schema defintiion        */\n";
     $sql .= $this->getSchema($conn);
     $sql .= "\n\n/*          Initial data import              */\n ";
     $sql .= $this->getInitImportData($order);
     file_put_contents($this->file . "/" . $this->rdbms . ".sql", $sql);
 }