protected function addMigrationHistory($version) { $this->db->createCommand()->insert($this->migrationTable, ['version' => $version, 'apply_time' => time()])->execute(); }