Unable to install plugin after previously having installed/uninstalled
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 63
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
Description
I came across an issue whereby I tried to reinstall the S3 plugin after having previously installed and uninstalled it, leaving the old migrations in place on the migrations table:
Integrity constraint violation: 1062 Duplicate entry 'plugin:aws-s3-Install' for key 'migrations_track_name_unq_idx'
This is specific to the S3 plugin, but presumably it applies to others?
Steps to reproduce
- Install S3 plugin
- Unintally S3 plugins
- Install S3 plugin
Additional info
- Craft version: 3.5.8
- Plugins & versions: S3
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 reproducing the S3 plugin install, uninstall, and reinstall sequence described in the issue, then inspect the migrations table and the plugin installation entry that causes the duplicate-key error. Done means a previously installed and uninstalled S3 plugin can be installed again without the migration conflict.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, php
- Domain
- backend, cloud, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100