コード例 #1
0
ファイル: AdapterTest.php プロジェクト: azema/phigrate
 /**
  * @todo   Gestion exception
  */
 public function testCreateTable()
 {
     $tableName = 'users';
     $table = $this->object->createTable('users', array('id' => false));
     $this->assertInstanceOf('Phigrate_Adapter_Mysql_TableDefinition', $table);
     $table = $this->object->createTable('users');
     $this->assertInstanceOf('Phigrate_Adapter_Mysql_TableDefinition', $table);
 }
コード例 #2
0
ファイル: migration.php プロジェクト: azema/phigrate
 public function createTable($tableName, $options = array())
 {
     $this->datas['createTable'] = array('name' => $tableName, 'options' => $options);
     return parent::createTable($tableName, $options);
 }