Setting primary key [May 03]

:raising_hand_man: wkw replied

like this

:raising_hand_man: Shard replied

:raising_hand_man: Shard replied

can I use a db query to directly make an existing column into a PK? I mean will nocodb recognize the action if it is not done through it?

:raising_hand_man: wkw replied

yes it should be fine

:raising_hand_man: wkw replied

can u please create an issue

:raising_hand_man: wkw replied

seems something wrong with postgres only

:raising_hand_man: Shard replied

Yeah sure.

:raising_hand_man: Shard replied

nocodb doesn’t seem to recognize the PK set by query

:raising_hand_man: Shard replied

ALTER TABLE table_name ADD CONSTRAINT table_name_pkey PRIMARY KEY (name); adds the PK indicator in postgres, but nocodb doesn’t see any changes

:raising_hand_man: wkw replied

i see

:raising_hand_man: Shard replied

image0

:raising_hand_man: Shard replied

image0

:person_tipping_hand: o1lab replied

Did you do a schema sync?

:raising_hand_man: Shard replied

no, how do I do that?

:raising_hand_man: wkw replied

<@310157751395287040> schema sync wont show the changes

:person_tipping_hand: o1lab replied

Bottom left… team and settings… then metadata

:raising_hand_man: wkw replied

i just tried that

:person_tipping_hand: o1lab replied

Ahok, let’s have an issue with detay

:person_tipping_hand: o1lab replied

*details

:raising_hand_man: wkw replied

<@236180348386541570> please create two separate issues - we’ll take a look at them