You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by to...@apache.org on 2004/06/19 16:49:12 UTC

cvs commit: db-ojb/profile postgresql.profile

tomdz       2004/06/19 07:49:12

  Modified:    profile  postgresql.profile
  Log:
  Changed that Torque is now able to create the database for the unit tests
  
  Revision  Changes    Path
  1.9       +9 -6      db-ojb/profile/postgresql.profile
  
  Index: postgresql.profile
  ===================================================================
  RCS file: /home/cvs/db-ojb/profile/postgresql.profile,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- postgresql.profile	5 Apr 2004 13:58:58 -0000	1.8
  +++ postgresql.profile	19 Jun 2004 14:49:12 -0000	1.9
  @@ -19,7 +19,7 @@
   
   torque.testDatabaseJar = ${lib.repo}/postgres.jar
   torque.idMethod = idbroker
  -torque.defaultDatabase = OJB
  +torque.defaultDatabase = ojbtest
   
   # -------------------------------------------------------------------
   #
  @@ -36,7 +36,8 @@
   # -------------------------------------------------------------------
   
   database = postgresql
  -database.manual.creation = true
  +# Set this to true if you want to create the database manually
  +database.manual.creation = false
   
   # -------------------------------------------------------------------
   #
  @@ -78,17 +79,19 @@
   # -------------------------------------------------------------------
   
   dbmsName = PostgreSQL
  -jdbcLevel = 1.0
  +jdbcLevel = 3.0
   urlProtocol = jdbc
   urlSubprotocol = postgresql
  -urlDbalias = OJB
  +urlDbalias = ${project}
   databaseDriver = org.postgresql.Driver
  -databaseUser = oleg
  +databaseUser = ojb
   databasePassword = 
   databaseHost = localhost
   
   databaseUrl = ${urlProtocol}:${urlSubprotocol}://${databaseHost}/${urlDbalias}
  -createDatabaseUrl = ${databaseUrl}
  +# For PostgreSQL we have to specify a specific database when we want to
  +# create a new database via JDBC
  +createDatabaseUrl = ${urlProtocol}:${urlSubprotocol}://${databaseHost}/template1
   buildDatabaseUrl = ${databaseUrl}
   
   # Tells JDBC task that javaName attribute for the tables and columns
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org