Add restartSequence() method to the CommandInterface
Open
Nobody has claimed this yet.
severity:BC breaking
type:enhancement
- Dominant language
- PHP
- Stars
- 216
- Forks
- 51
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 2
Description
Proposed new feature or change
Add method to restart sequence.
Sql statement example for postgresql:
ALTER SEQUENCE {$sequence} RESTART;
The sequence does not always start from 1, so the existing method resetSequence() cannot be used.
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 at CommandInterface and trace the existing resetSequence() method through its database-specific implementations. Compare the PostgreSQL ALTER SEQUENCE ... RESTART behavior with the current reset behavior, then identify the relevant tests or implementation coverage; the work is done when the new method is available consistently and preserves sequences whose starting value is not 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, postgresql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100