src/Schema.php
/**
     * Collects the primary key column details for the given table.
     *
     * @param TableSchema $table the table metadata
     *
     * @throws Exception|InvalidConfigException|Throwable
     */
Collects the primary key column details for the given table.
@param TableSchema $table the table metadata


Collects the primary key column details for the given table . @param TableSchema $table the table metadata
protected function findPrimaryKeys(TableSchema $table): void
    {
        foreach ($this->findTableConstraints($table, 'PRIMARY KEY') as $row) {
            $table->primaryKey($row['field_name']);
        }
    }
protected function findPrimaryKeys ( TableSchema $ table ) : void { foreach ( $ this -> findTableConstraints ( $ table , 'PRIMARY KEY' ) as $ row ) { $ table -> primaryKey ( $ row [ 'field_name' ] ) ; } }
Collects the primary key column details for the given table.
Collects the primary key column details for the given table .