You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a simple database that uses two columns as primary keys for my table :
CREATETABLE "exchange_rates" (
"currency_name"VARCHAR(255) UNIQUE NOT NULL,
"year_of_exchange"INT UNIQUE NOT NULL,
"usd_exchange"NUMERICNOT NULL,
CONSTRAINT"exchange_rates_id"PRIMARY KEY ("currency_name", "year_of_exchange")
);
But when I try to create an element in this table from the motor-admin UI, it returns me the following error :
Unknown primary key for table exchange_rates in model ExchangeRate.
Are the use of two columns as primary keys not supported by motor-admin, as it works just fine when creating directly the element inside the db, or I am missing something ?
Thanks !
The text was updated successfully, but these errors were encountered:
Hi everyone,
I'm working with a simple database that uses two columns as primary keys for my table :
But when I try to create an element in this table from the motor-admin UI, it returns me the following error :
Unknown primary key for table exchange_rates in model ExchangeRate.
Are the use of two columns as primary keys not supported by motor-admin, as it works just fine when creating directly the element inside the db, or I am missing something ?
Thanks !
The text was updated successfully, but these errors were encountered: