From d0fcc8cd6fbff3e7b42e33638345da511d0445d2 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 21 Aug 2016 01:24:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=20?= =?UTF-8?q?=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B2?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=20=D1=83?= =?UTF-8?q?=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BE=D0=B9=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/db/Migration.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/console/db/Migration.php b/console/db/Migration.php index d784a36..dd1cc3c 100644 --- a/console/db/Migration.php +++ b/console/db/Migration.php @@ -17,6 +17,14 @@ class Migration extends YiiMigration { return $tableOptions; } + public function createTable($table, $columns, $options = null) { + if ($options === null) { + $options = $this->getTableOptions(); + } + + parent::createTable($table, $columns, $options); + } + protected function primary(...$columns) { switch (count($columns)) { case 0: