Donnager
01/27/2022, 10:16 PMdb error: ERROR: schema "auth" does not exist
in this github thread it looks like someone asks the same question and did not get a response / was asked to go to prisma:
https://github.com/supabase/supabase/issues/1502,
conversely in prisma's slack someone else asked as well and the response was to ask around here, but in the discord search i didnt see anythingRortan
01/27/2022, 10:35 PMScotty
01/27/2022, 10:43 PMjs
const { user, session, error } = await supabase.auth.signIn({
// provider can be 'github', 'google', 'gitlab', or 'bitbucket'
provider: "github",
});
console.log(user);
garyaustin
01/27/2022, 11:11 PMScotty
01/27/2022, 11:12 PMScotty
01/27/2022, 11:12 PMScotty
01/27/2022, 11:12 PMKazuYagami
01/28/2022, 2:36 AMmoein
01/28/2022, 7:33 AMVincentThomas
01/28/2022, 9:30 AMid
and userId
as columns. I don't want userId
to be unique and i don't want id
to be unique. But the combination between them to be unique. Can that be done?stabacco
01/28/2022, 10:40 AMVincentThomas
01/28/2022, 10:40 AMVincentThomas
01/28/2022, 10:42 AMstabacco
01/28/2022, 10:46 AMALTER TABLE tablename ADD CONSTRAINT constraintname UNIQUE (userid, id);
Richie
01/28/2022, 10:51 AMVincentThomas
01/28/2022, 10:54 AMdmytro.eth
01/28/2022, 10:54 AMVincentThomas
01/28/2022, 10:55 AMdmytro.eth
01/28/2022, 10:56 AMVincentThomas
01/28/2022, 10:56 AMstabacco
01/28/2022, 10:57 AMVincentThomas
01/28/2022, 10:59 AMcould not create unique index "index_name"
. i don't have any other indexes. One of the columns is a foreign key. is that okay? And none is unique. Am i doing something wrong?VincentThomas
01/28/2022, 11:01 AMstabacco
01/28/2022, 11:02 AMVincentThomas
01/28/2022, 11:03 AMALTER TABLE invites ADD CONSTRAINT unique_invites UNIQUE (group_id, owner_id);
stabacco
01/28/2022, 11:04 AMVincentThomas
01/28/2022, 11:05 AMdmytro.eth
01/28/2022, 11:40 AMVincentThomas
01/28/2022, 12:20 PMoscar_gallog
01/28/2022, 12:45 PM