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