Add schema creation to migration API
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- PHP
- Stars
- 4.5k
- Forks
- 884
- PR merge metrics
- No merged PRs in 30d
Description
Migrations can create databases and tables but not schemas. It is also not valid to create a schema implicitly using the create table API, e.g. $this->table('foo.bar')->create().
PDOException: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema "foo" does not exist
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.
Research direction
Start by locating the migration API that handles database and table creation, then trace how a qualified name such as foo.bar is processed. Reproduce the reported invalid-schema error and verify that schema creation is supported and that the qualified table example works as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100