Add / document a more convenient way to specify composite primary keys
Open
@terabytesoftw is already working on this.
Since Apr 7, 2023.
type:docs
type:enhancement
- Dominant language
- PHP
- Stars
- 216
- Forks
- 51
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 2
Description
The way that was advised by @darkdef
$qb->createTable(
'test',
[
'name' => 'varchar(255) NOT NULL',
'email' => 'varchar(255) NOT NULL',
'PRIMARY KEY (name, email)',
],
);
PRIMARY KEY (name, email):
- This is not a column.
- It's pretty basic for writing raw SQL.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.