title: Playframework 2.1 and Heroku update problems
body: <p>i've create a play framework 2.1.0 project and deployed it on heroku. Last friday I've had to change the data models to add some extra fields. Once i tried to deploy the changes, it gave me evolution errors.</p>
  
  <p>Unable to fixe the problem i've reverted the changed and deployed the old version but i still get an error.</p>
  
  <p>The current error i'm getting is this </p>
  
  <pre><code> database [default] connected at jdbc:postgresql: ...
   Position: 27 [ERROR:0, SQLSTATE:42601]
   ERROR: syntax error at or near "FALSE"
  at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1$$anonfun$apply$1.apply$mcV$sp(Evolutions.scala:435)
  Oops, cannot start the server.
  at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:434)
  at play.api.db.evolutions.Evolutions$.evolutionScript(Evolutions.scala:306)
  at scala.collection.immutable.List.foreach(List.scala:309)
  at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63)
  at play.api.Play$.start(Play.scala:62)
  at play.api.db.evolutions.EvolutionsPlugin.onStart(Evolutions.scala:432)
  @6ele4bdao: Database 'default' is in inconsistent state!
  ....
  </code></pre>
  
  <p>To deploy i'm using the following using this procfile line:</p>
  
  <pre><code>web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS} -DapplyDownEvolutions.default=true -DapplyEvolutions.default=true -Ddb.default.driver=org.postgresql.Driver -Ddb.default.url=${POSTGRESQL_URL}
  </code></pre>
  
  <p>Also as suggested i've used <code>heroku pg:psql</code> along with <code>SELECT id, last_problem FROM play_evolutions;</code> to find out the error and it says <code>syntax error at or near "FALSE"</code> but i don't see any false in my 1.sql file.</p>
  
  <p>Anyone can give me a hand with this it's driving me crazy.</p>