protected function ensureMigrationTableExists() { if (!$this->platform->hasTable('#__kk_migrations')) { $table = new Table('#__kk_migrations', $this->platform); $table->addColumn('version', 'char', ['limit' => 14, 'primary_key' => true]); $table->addColumn('migrated', 'bigint', ['unsigned' => true]); $table->addIndex(['migrated']); $table->create(); } }