Hi friends!
I would like to present the next case to get some ideas on how implement this.
CASE:
I have a PDM model that is used to generate scripts to change database of a system. We create, alter e populate tables (and other objects) using this model and deliver scripts to change the database with the new version of the system.
Evolution of the System:
System version A
Database script Version 1:
CREATE TABLE a (...)
INSERT INTO a VALUES (1,1);
INSERT INTO a VALUES (1,2);
System version B
Database script Version 2:
CREATE TABLE b (...)
INSERT INTO b VALUES (a,a);
INSERT INTO b VALUES (a,b);
INSERT INTO a VALUES (1,3); -- !!!
Questions:
How can I insert the new script to insert values in "a" (!!!) and generate DDL script using "Database\Modify Database" with all the others changes.
Is there a way to move this script do insert values in "a" at the end of the file?
Problems:
If I put the script at the Script\End tab of Table Properties on Version 1, the Version 2 will not have the INSERT script after run "Database\Modify Database".
Thanks in advance!