I'm tying to submit a package (staring with the project) to Packagist, but I'm having the following error:
[Doctrine\DBAL\DBALException] An exception occurred while executing 'INSERT INTO tag (name) VALUES (?)' with params {"1":"Mathematica"}: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Mathematica' for key 'name_idx'
The url of my project is: https://github.com/GarouDan/phpmath.git
Packagist url: https://packagist.org/packages/garoudan/phpmath
composer.json
file:
{
"name": "garoudan/phpmath",
"type": "library",
"description": "Library to run Mathemtica functions trought PHP.",
"keywords": ["php","PHP","mathematica","Mathematica","MathKernel","mathkernel","math","MathematicaScript","mathematicascript"],
"homepage": "https://github.com/GarouDan/phpmath",
"license": "MIT",
"authors": [
{
"name": "Danilo Araújo Silva",
"email": "[email protected]",
"homepage": "http://daniloaraujosilva.com",
"role": "Developer"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-0": {
"Backend" : "core"
}
}
}
That looks like a SQL unique constraint violation. It's probably because you have lowercase and capitalized versions of all your tags, and they're using a case insensitive DB. Try submitting it with just one of each tag.