Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

If I need to execute some SQL scripts to setup the database, what should I do?

  1. Wiki MarkupWrite your SQL script and put it under test/resource/\[your own directory name\]
  2. Wiki MarkupCall DbTestUtils.executeScript("test/resource/\[your own directory name\]/\[your script filename\]");

For example, assuming you have a script file in "server/test/resource/VerionDaoImplTest/2.1.7/2.1.7.sample.sql", you will write the following.  Note that "server" is missing in the path.DbTestUtils.executeScript("test/resource/PreviousDatabaseSchema/2.1.7/2.1.7.sample.sql");

...