Ant
09/13/2021, 1:08 PMid
?Miguel
09/13/2021, 1:14 PMdeleting
the target table and assinging the Is Identity
property of id
column primary-key checkbox to checked
Miguel
09/13/2021, 1:15 PMbokolesnik
09/13/2021, 1:46 PMScott P
09/13/2021, 1:57 PMMichael Ketzer | streamgeist.com
09/13/2021, 2:13 PMerik_flywheel
09/13/2021, 2:16 PMMiguel
09/13/2021, 3:37 PMMiguel
09/13/2021, 3:38 PMMiguel
09/13/2021, 3:39 PMMiguel
09/13/2021, 3:42 PMtype
of column (ie: varchar to text or anything else...)
Showing this error, making us delete a table and create a new one correctly...frubalu
09/13/2021, 5:08 PMcategories
table, however it isn't deleting due to a foreign key constraint. I have a join table named category_items
, which is where it's failing. How can I alter the table to allow for a ON DELETE CASCADE
? I'm looking to automatically delete entries from category_items
whenever attempting to delete an entry from categories
.silentworks
09/13/2021, 5:15 PMsilentworks
09/13/2021, 5:17 PMsilentworks
09/13/2021, 5:19 PMsilentworks
09/13/2021, 5:20 PMfrubalu
09/13/2021, 5:48 PMBrock
09/13/2021, 6:23 PMpublic.profiles
field role
is set to "admin"
??Brock
09/13/2021, 6:44 PMivanq3w
09/13/2021, 6:50 PMjbergius
09/13/2021, 7:01 PMBrock
09/13/2021, 7:04 PMpublic.users
table as well you can check the uid
against that tablejbergius
09/13/2021, 7:06 PMBrock
09/13/2021, 7:09 PMpublic.users
table will not have a new line until you insert one. So the uid
of the row in auth.users
will match the foreign key of user_id
in public.users
. So they should be unique and not repeat. Once a user registers you can redirect them to say /profiles
and from there query for their session.user.id
in the public.users
table and if it does not exist, this is a new user. Of course this is just one way and I am sure there are other, more effective ways.spencer
09/13/2021, 7:29 PMBrock
09/13/2021, 8:31 PMrole
with value admin
can select all rows from the that table?Brock
09/13/2021, 8:37 PMprofiles.role() = admin
alexandre
09/13/2021, 8:58 PMalexandre
09/13/2021, 9:01 PM