• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Migration Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Migration Error


  • Subject: Migration Error
  • From: Gustavo Pizano <email@hidden>
  • Date: Thu, 20 Mar 2008 19:17:02 -0500

Hello after deciding the proper name for the PK add the following lines to the properties file


# Migrations
er.migration.migrateAtStartup=true
er.migration.createTablesIfNecessary=true
er.migration.modelNames=Convocatoriawo
ConvocatoriaWO.MigrationClassPrefix = com.convocatoriaWO.migration.Convocatoriawo

#Conection Dictionary
dbConnectURLGLOBAL=jdbc:mysql://localhost/Convocatoriawo?capitalizeTypesnames=true&zeroDateTimeBehavior=convertToNull
dbConnectUserGLOBAL = root
#dbConnectPasswordGLOBAL

the blue highlighted means ..?? the project name?... and the orange kind of red means???

ok so O was following as the screen cast says, btu with my model then I get the following error when running for first time

Mar 20 19:09:41 ConvocatoriaWO[50374] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog  -  evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "UPDATE _dbupdater SET lockowner = ?, updatelock = ? WHERE (modelname = ? AND (updatelock = ? OR lockowner = ?))" withBindings: 1:"ConvocatoriaWO--1"(lockOwner), 2:1(updateLock), 3:"Convocatoriawo"(modelName), 4:0(updateLock), 5:"ConvocatoriaWO--1"(lockOwner)>
Mar 20 19:09:41 ConvocatoriaWO[50374] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog  -  === Rollback Internal Transaction
Mar 20 19:09:41 ConvocatoriaWO[50374] (ERXJDBCMigrationLock.java:126) WARN  er.extensions.migration.ERXJDBCMigrationLock  - Failed to lock.  Attempting to create the table and lock again. Original reason for failure: 
Table 'convocatoriawo._dbupdater' doesn't existat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1026)

So I dunno what im doing wrong, I created the databases called Convocatoriawo 



Gus


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Migration Error
      • From: Archibald Singleton <email@hidden>
    • Re: Migration Error
      • From: Gustavo Pizano <email@hidden>
  • Prev by Date: Re: Yet Another Question
  • Next by Date: Re: Better start with Wonder than WO
  • Previous by thread: Re: Pb with WOImage on WO5.4
  • Next by thread: Re: Migration Error
  • Index(es):
    • Date
    • Thread