can't add field PRIMARY KEY
Issue #158
resolved
Originally reported on Google Code with ID 158
In phpliteadmin i
- choose a table
- choose 'structure'
- choose 'Add 1 field at end of table'
the field have for name 'id', for type INTEGER and IS A PRIMARY KEY
phpliteadmin andswers :
Error: Cannot add a PRIMARY KEY column
----------------
I use phpLiteAdmin v1.9.3 ... here for example :
http://francois.couloigner.free.fr/sqlite/phpliteadmin.php
Reported by fcouloigner
on 2012-11-24 11:29:40
Comments (3)
-
-
Reported by
crazy4chrissi
on 2013-03-01 00:15:35 - Labels added: Type-Enhancement - Labels removed: Type-Defect -
It is now possible to add primary keys to existing columns since r444 and to add new columns that are primary key since r445. This is only possible if there is no primary key yet. If there is one, you will get this error: table "tablename" has more than one primary key With r444, it is already possible to add primary keys, also compound ones, if there is no such key. So only thing really missing is a possibility to drop the primary key. But that's another issue (which I will open in a minute).
Reported by
crazy4chrissi
on 2013-12-29 23:17:59 - Status changed:Fixed
- Labels added: Target-1.9.5 - Log in to comment
Reported by
crazy4chrissi
on 2012-11-25 00:09:29 - Status changed:Accepted