coolify icon indicating copy to clipboard operation
coolify copied to clipboard

Fix: Multiple Init script fixes and some other Postgres fixes

Open peaklabs-dev opened this issue 4 months ago • 0 comments

Changes

  • Fix: When having multiple Postgres init scripts, saving a change to one init script would delete all other init scripts.
  • Fix: Changing the file name of an existing init script would create a new init script instead of renaming the file.
  • Fix: Some index issue with the json in the DB when updating init scripts.
  • Fix: When deleting an init script, the array has formatting problems as it is not reindexed.
  • Fix: Deleting an init script does not remove it form the server.
  • Fix: When renaming an init script, the old init script (old name) is still on the server, which can lead to conflicts -> Now the init script is loaded fresh from the Coolify database on each deploy (folder is emptied first)
  • Fix: When renaming an init script the old script is now deleted from the server
  • Fix: Remove custom-postgres.conf if input is empty or null as the file is not needed on the server anymore

TODO:

  • [ ] If public port is already allocated show an error toast
  • [ ] Do these fixes if needed to the other DBs

Issues

  • fix #3273

peaklabs-dev avatar Oct 18 '24 14:10 peaklabs-dev