Open firebird-automations opened 16 years ago
Commented by: Valdir Stiebe Junior (ogecrom)
This script files are the way we use to update our database today. We drop all triggers, views and procedures in a recursive way for then, update the DDL for the tables, and then recreate all the new triggers, views and procedures.
The "with dependencies" option for the drop command would help developers who work with complex triggers, views and procedures dependencies.
Commented by: Bjoern Reimer (bnreimer)
May be the keyword should be CASCED like in PostgreSQL
e.g. DROP TABLE products CASCADE;
Commented by: Valdir Stiebe Junior (ogecrom)
Sorry, the attached scripts have problems with circular dependencies.
Submitted by: Valdir Stiebe Junior (ogecrom)
Attachments: XX - CREATE DROP triggers&views&procedures.sql XX - DROP triggers&views&procedures.sql
Votes: 2
Add the "with dependencies" to the drop <object> command.