Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At work we use a rather idiosyncratic tool called RoundhousE to deploy our SQL. It treats sql labelled as a stored procedure differently, and will run the file on every deploy, as opposed to scripts that alter the schema, which are only ran once, and may not be modified.

The system works pretty well.



You don't need a tool for this. If you store base data in one schema, and functions/views in another, you can update this second schema willy nilly without worrying about damaging your data.

Just start the second file with DROP SCHEMA IF EXISTS schemaname CASCADE; CREATE SCHEMA schemaname;. Then, make sure any functions/views/permissions built on top of this schema are also contained within this file.


Or you can just pull the SQL for the stored procedure from a table column and execute it dynamically.

Now it's an ops problem :-)


Haha, usually we hear this from smart guys who have been working for about 8 months...


Oh, that's slick. Nice!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: