sqladmin icon indicating copy to clipboard operation
sqladmin copied to clipboard

Multiple PK columns support

Open aminalaee opened this issue 4 years ago • 2 comments

Discussed in https://github.com/aminalaee/sqladmin/discussions/59

Originally posted by javtau February 19, 2022 Hi, this is so great, Are you thinking on implement the multiple pk support for foreign primary keys like flask Admin?

aminalaee avatar Feb 23 '22 16:02 aminalaee

I just installed sqladmin and after adding my second table got this error : AssertionError: Multiple PK columns not supported. Is there a possibility to show my table having multiple PK or this table cannot be visible at all in sqladmin ?

marc-odp avatar May 13 '22 16:05 marc-odp

At the moment there's no support for tables with multiple PK. But same as flask-admin, there can be some limited capabilities for multiple PK tables, but that's not implemented yet.

aminalaee avatar May 13 '22 20:05 aminalaee

Do we have any update on this? What is the issue for why it does not exists?

AdnanAvdagic avatar Mar 13 '23 12:03 AdnanAvdagic

I haven't had a chance to work on it. There are some limitations with the multi PK and not all features will work with that.

aminalaee avatar Mar 13 '23 15:03 aminalaee