Commit 6fd7ad1e authored by Ronan's avatar Ronan
Browse files

fix(AbstractDb): remove AUTO_INCREMENT specifier with Mysql backend on varcharPrimaryKeyStr

parent f047ea77
......@@ -130,7 +130,7 @@ string AbstractDb::varcharPrimaryKeyStr (int length) const {
switch (d->backend) {
case Mysql:
return " VARCHAR(" + Utils::toString(length) + ") AUTO_INCREMENT PRIMARY KEY";
return " VARCHAR(" + Utils::toString(length) + ") PRIMARY KEY";
case Sqlite3:
return " VARCHAR(" + Utils::toString(length) + ") PRIMARY KEY";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment