[ http://jira.andromda.org/browse/ANDROMDAPP-4?page=all ]
Chad Brandon updated ANDROMDAPP-4: ---------------------------------- Comment: was deleted > Generated Ant build.xml needs to skip "drop sequence" in create script > ---------------------------------------------------------------------- > > Key: ANDROMDAPP-4 > URL: http://jira.andromda.org/browse/ANDROMDAPP-4 > Project: AndroMDApp Project Generator > Type: Bug > Versions: 3.2-RC1 > Environment: OS X 10.4.3 -- Eclipse 3.2M4 -- Postgres 8.0 > Reporter: Nayan Hajratwala > Assignee: Joel Kozikowski > > The generated create schema SQL file, has a "drop sequence" that causes the > whole script to fail the first time it is run. This should be skipped just > like the other alters & drops. > Patch is below. > ### Eclipse Workspace Patch 1.0 > #P andromda-all > Index: > andromdapp/projects/richclient/ant/src/main/resources/templates/richclient/ant/build.xml.vsl > =================================================================== > RCS file: > /cvsroot/andromda/andromdapp/projects/richclient/ant/src/main/resources/templates/richclient/ant/build.xml.vsl,v > retrieving revision 1.1.2.6 > diff -u -r1.1.2.6 build.xml.vsl > --- > andromdapp/projects/richclient/ant/src/main/resources/templates/richclient/ant/build.xml.vsl > 16 Dec 2005 20:39:39 -0000 1.1.2.6 > +++ > andromdapp/projects/richclient/ant/src/main/resources/templates/richclient/ant/build.xml.vsl > 5 Jan 2006 21:27:32 -0000 > @@ -119,7 +119,7 @@ > <classpath refid="hibernate.classpath" /> > </java> > <replaceregexp file="${dataSource.sql.init}" > - match="^(alter table .* drop constraint|alter table > .* drop foreign key|drop table)" > + match="^(alter table .* drop constraint|alter table > .* drop foreign key|drop table|drop sequence)" > replace="-- for safety, skipping over: \1" > flags="i" > byline="true"/> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV