protected function getIndexDefinitionSql(Table $table, Index $index) { $sql = $index->isUnique() ? 'UNIQUE INDEX ' : 'INDEX '; $sql .= $this->conn->quoteIdentifier($index->getName($this->conn->applyPrefix($table->getName()))); return $sql; }
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(); } }