0
我綁提交包(與項目凝視),以Packagist,但我有以下錯誤:將包提交給Packagist時發生異常。怎麼解決?
[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'
我的項目的URL是: https://github.com/GarouDan/phpmath.git
Packagist網址:https://packagist.org/packages/garoudan/phpmath
composer.json
文件:
{
"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"
}
}
}
這有效(昨天我會找到相同的解決方案,但奇怪的是看起來像'PHP'和'php'工作,但是'Mathematica'和'mathematica'沒有)。謝謝。 – GarouDan
我的猜測是PHP標籤已經存在,所以它會「查找」來獲取該標籤實體。但Mathematica還沒有,所以它試圖插入兩者。但是因爲他們使用的是不區分大小寫的數據庫,所以無論如何你都不需要它。 – bobthecow
這個bug現在已經在Packagist中修復了。 – Seldaek