Handling of multi column primary keys
rrelmy opened this issue · 1 comments
rrelmy commented
Is there a possibility to use paris with tables which have an primary key containing multiple columns?
Sample table
CREATE TABLE IF NOT EXISTS `shop_cart_item_config` (
`item_id` int(10) unsigned NOT NULL,
`language` varchar(8) NOT NULL,
`quantity` int(10) unsigned DEFAULT '0',
PRIMARY KEY (`item_id`,`language`)
)
treffynnon commented
There isn't any support for compound keys in Idiorm or Paris at the moment. There is a pull request (j4mie/idiorm#161) currently pending review for inclusion in Idiorm, but any potential support in Paris is yet to be considered.