Page 1 of 1

Exporting the database schema

Posted: Tue Jul 29, 2014 8:00 pm
by tpoon
I have downloaded the Broadleaf 3.1 demo workspace, and I am following the directions on this page to export the database schema:
http://www.broadleafcommerce.com/docs/c ... ema-script

However I am getting a "target does not exist" error when I try to run build-create-sql:

Code: Select all

E:\dev\broadleafCommerce\eclipse-workspace\DemoSite\site>ant build-create-sql
Buildfile: E:\dev\broadleafCommerce\eclipse-workspace\DemoSite\site\build.xml

BUILD FAILED
Target "build-create-sql" does not exist in the project "site".

Total time: 0 seconds


It looks like the build.xml file doesn't have this target. Is there a newer version that I need to download?

Thanks,

-- Terry

Re: Exporting the database schema

Posted: Thu Oct 02, 2014 7:19 am
by NITIN
Hey Terry
I am new to this forum.I am trying to export database schema but i am getting the same error. Did you get any solution to problem. If anybody knows from where i can get the database scripts and please reply on this forum . I appreciate your efforts in advance.

Thanks

Re: Exporting the database schema

Posted: Thu Oct 02, 2014 10:17 am
by phillipuniverse
Sorry, these docs are a bit out of date. We will officially be retiring this tool in Broadleaf 3.2.0-GA as it is not something that is straightforward to maintain and does not provide a lot of value.

If you would like to create a v1 database dump, I recommend changing the Hibernate ddl to 'create' and allow Hibernate to create all of the tables and metadata in your database. You can then continue managing changes to your schema via Liquibase: http://www.broadleafcommerce.com/docs/c ... -liquibase (or Flywaydb).