0

我想向 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'

我的项目的网址是: https ://github.com/GarouDan/phpmath.git

打包师网址: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": "silva.danilo.araujo@gmail.com",
            "homepage": "http://daniloaraujosilva.com",
            "role": "Developer"
        }
    ],
    "require": {
        "php": ">=5.3.0"
    },
    "autoload": {
        "psr-0": {
            "Backend" : "core"
        }
    }
}
4

1 回答 1

1

这看起来像是违反了 SQL 唯一约束。这可能是因为您的所有标签都有小写和大写版本,并且它们使用的是不区分大小写的数据库。尝试仅使用每个标签之一提交它。

于 2013-03-31T05:24:17.080 回答