@@ -283,18 +283,27 @@ public function testCreateMigrationForDropTable132()
283
283
// $this->deleteTablesForCreateMigrationForDropTable132();
284
284
$ this ->createTablesForCreateMigrationForDropTable132 ();
285
285
$ this ->runGenerator ($ testFile );
286
- $ this ->runActualMigrations ('mysql ' , 3 );
286
+ $ this ->runActualMigrations ('mysql ' , 6 );
287
287
// ... TODO compare files
288
288
$ this ->deleteTablesForCreateMigrationForDropTable132 ();
289
- // $this->deleteTables();
289
+ $ this ->deleteTables ();
290
290
}
291
291
292
292
private function createTablesForCreateMigrationForDropTable132 ()
293
293
{
294
- // Yii::$app->db->createCommand()->createTable('{{%upks}}', [
295
- // 'id' => 'upk',
296
- // 'name' => 'string(150)',
297
- // ])->execute();
294
+ Yii::$ app ->db ->createCommand ()->createTable ('{{%upks}} ' , [
295
+ 'id ' => 'upk ' ,
296
+ 'name ' => 'string(150) ' ,
297
+ ])->execute ();
298
+ Yii::$ app ->db ->createCommand ()->createTable ('{{%bigpks}} ' , [
299
+ 'id ' => 'bigpk ' ,
300
+ 'name ' => 'string(150) ' ,
301
+ ])->execute ();
302
+ Yii::$ app ->db ->createCommand ()->createTable ('{{%ubigpks}} ' , [
303
+ 'id ' => 'ubigpk ' ,
304
+ 'name ' => 'string(150) ' ,
305
+ ])->execute ();
306
+
298
307
299
308
Yii::$ app ->db ->createCommand ()->createTable ('{{%fruits}} ' , [
300
309
'id ' => 'pk ' ,
@@ -314,6 +323,8 @@ private function deleteTablesForCreateMigrationForDropTable132()
314
323
Yii::$ app ->db ->createCommand ('DROP TABLE IF EXISTS {{%pristines}} ' )->execute ();
315
324
Yii::$ app ->db ->createCommand ('DROP TABLE IF EXISTS {{%fruits}} ' )->execute ();
316
325
Yii::$ app ->db ->createCommand ('DROP TABLE IF EXISTS {{%upks}} ' )->execute ();
326
+ Yii::$ app ->db ->createCommand ('DROP TABLE IF EXISTS {{%bigpks}} ' )->execute ();
327
+ Yii::$ app ->db ->createCommand ('DROP TABLE IF EXISTS {{%ubigpks}} ' )->execute ();
317
328
}
318
329
319
330
public function test162BugDollarrefWithXFaker ()
0 commit comments