[ http://jira.andromda.org/browse/ANDROMDAPP-4?page=history ]
Chad Brandon reassigned ANDROMDAPP-4: ------------------------------------- Assign To: Joel Kozikowski (was: Chad Brandon) > 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 SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click