twenty icon indicating copy to clipboard operation
twenty copied to clipboard

[Remotes] Add endpoint to update server connection

Open thomtrp opened this issue 1 year ago • 0 comments

What

Server connection should be editable. We need to add a new endpoint. See how this is done to remove a server.

How

  • Rename CreateRemoteServerInput into RemoteServerInput
  • Input { id: <string>, server: RemoteServerInput }
  • Unsync existing foreign tables as it is done during deletion
  • alter foreign data wrapper https://www.postgresql.org/docs/current/sql-alterforeigndatawrapper.html
  • alter user mapping https://www.postgresql.org/docs/current/sql-alterusermapping.html

thomtrp avatar Apr 02 '24 16:04 thomtrp