Domanda

I am currently trying to fix a faulty database evolution script--in fact, my first one (1.sql) for the web application. I applied the fix to the file, but the unfixed file is the one being run in both a live instance my Specs2 tests.

So, for instance, if I changed:

CREATE  TABLE dbname.Account ( ... );

to:

CREATE  TABLE IF NOT EXISTS dbname.Account ( ... );

in my evolution script, and then ran a test or ran the actual instance,

CREATE  TABLE dbname.Account ( ... );

would be what it still sees, as shown in the test log and in the live instance's error screen that shows up when an evolution is not applied correctly.

I've tried cleaning, recompiling, and deleting my target folder. None of those worked. Any ideas?

Thanks.

È stato utile?

Soluzione

The folks over at the Play Framework Google Group got this one. Evolution scripts are also stored in your database schema in the table "play_evolutions". Wiping out the table fixed the issue. Wiping out the row would probably work too.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top