-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.10.6: still issues with conflicting implementations of trait
#1333
Comments
Hey @frederikhors, sorry for the delay. I was not able to reproduce the error. Could you please provide a sample SQL like below? create table if not exists player
(
id integer
);
create unique index if not exists player_id_uindex
on player (id);
create table if not exists tenant
(
id integer
);
create unique index if not exists tenant_id_uindex
on tenant (id);
create table if not exists house
(
tenant_id integer
constraint house_tenant_id_fk
references tenant (id),
player_id integer
constraint house_player_id_fk
references player (id)
);
create table if not exists offer
(
tenant_id integer
constraint offer_tenant_id_fk
references tenant (id),
player_id integer
constraint offer_player_id_fk
references player (id)
); |
I'll in a few hours. Sorry for the delay. |
Thanks!! @frederikhors No rush! |
@ryanoillataguerre, can you post your sql? I cannot right now since I switched project. |
Hey @frederikhors no problem, here it is below: CREATE TABLE users
(
id uuid PRIMARY KEY DEFAULT uuid_generate_v1mc(),
email TEXT UNIQUE NOT NULL,
...
); CREATE TABLE bills
(
id uuid PRIMARY KEY DEFAULT uuid_generate_v1mc(),
...
); CREATE TABLE users_votes
(
user_id uuid REFERENCES users (id) ON UPDATE CASCADE ON DELETE CASCADE,
bill_id uuid REFERENCES bills (id) ON UPDATE CASCADE ON DELETE CASCADE,
vote boolean NOT NULL,
CONSTRAINT users_bills_pkey PRIMARY KEY (user_id, bill_id)
); CREATE TABLE users_saved_bills
(
user_id uuid REFERENCES users (id) ON UPDATE CASCADE ON DELETE CASCADE,
bill_id uuid REFERENCES bills (id) ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT users_saved_bills_pkey PRIMARY KEY (user_id, bill_id)
); |
Is there another way to define these many to manies that I'm not catching in my SQL? |
Thanks everyone for the help!! Please check this PR |
This is awesome, thanks @billy1624 ! Hope it gets merged soon. Out of curiosity, does this problem only show up for non- |
Since #1287 is closed I just tried 0.10.6: unfortunately the issue is still there:
with error:
The entities in this case are:
I'll downgrade to 0.10.2 for now.
On other entites there is the same issue too (because of tenant_id).
The text was updated successfully, but these errors were encountered: