vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/MysqlAdapterTest.php 1 location
|
@@ 208-217 (lines=10) @@
|
205 |
|
//$this->adapter->createTable('ntable', ) |
206 |
|
} |
207 |
|
|
208 |
|
public function testCreateTableWithNoPrimaryKey() |
209 |
|
{ |
210 |
|
$options = array( |
211 |
|
'id' => false |
212 |
|
); |
213 |
|
$table = new \Phinx\Db\Table('atable', $options, $this->adapter); |
214 |
|
$table->addColumn('user_id', 'integer') |
215 |
|
->save(); |
216 |
|
$this->assertFalse($this->adapter->hasColumn('atable', 'id')); |
217 |
|
} |
218 |
|
|
219 |
|
public function testCreateTableWithMultiplePrimaryKeys() |
220 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SQLiteAdapterTest.php 1 location
|
@@ 114-123 (lines=10) @@
|
111 |
|
//$this->adapter->createTable('ntable', ) |
112 |
|
} |
113 |
|
|
114 |
|
public function testCreateTableWithNoPrimaryKey() |
115 |
|
{ |
116 |
|
$options = array( |
117 |
|
'id' => false |
118 |
|
); |
119 |
|
$table = new \Phinx\Db\Table('atable', $options, $this->adapter); |
120 |
|
$table->addColumn('user_id', 'integer') |
121 |
|
->save(); |
122 |
|
$this->assertFalse($this->adapter->hasColumn('atable', 'id')); |
123 |
|
} |
124 |
|
|
125 |
|
public function testCreateTableWithMultiplePrimaryKeys() |
126 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SqlServerAdapterTest.php 1 location
|
@@ 134-143 (lines=10) @@
|
131 |
|
$this->assertFalse($this->adapter->hasColumn('ntable', 'address')); |
132 |
|
} |
133 |
|
|
134 |
|
public function testCreateTableWithNoPrimaryKey() |
135 |
|
{ |
136 |
|
$options = array( |
137 |
|
'id' => false |
138 |
|
); |
139 |
|
$table = new \Phinx\Db\Table('atable', $options, $this->adapter); |
140 |
|
$table->addColumn('user_id', 'integer') |
141 |
|
->save(); |
142 |
|
$this->assertFalse($this->adapter->hasColumn('atable', 'id')); |
143 |
|
} |
144 |
|
|
145 |
|
public function testCreateTableWithMultiplePrimaryKeys() |
146 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/PostgresAdapterTest.php 1 location
|
@@ 165-174 (lines=10) @@
|
162 |
|
$this->assertFalse($this->adapter->hasColumn('ntable', 'address')); |
163 |
|
} |
164 |
|
|
165 |
|
public function testCreateTableWithNoPrimaryKey() |
166 |
|
{ |
167 |
|
$options = array( |
168 |
|
'id' => false |
169 |
|
); |
170 |
|
$table = new \Phinx\Db\Table('atable', $options, $this->adapter); |
171 |
|
$table->addColumn('user_id', 'integer') |
172 |
|
->save(); |
173 |
|
$this->assertFalse($this->adapter->hasColumn('atable', 'id')); |
174 |
|
} |
175 |
|
|
176 |
|
public function testCreateTableWithMultiplePrimaryKeys() |
177 |
|
{ |