In the todo app sample in the documentation for playback, creating a task table using mysql did not create evolution. I tried to use
applyEvolutions.default=true
in application.conf. Even tried to run the application using
start -DapplyEvolutions.default=true
The mysql query was not a problem either, because manually entering it inside the mysql console made it work correctly. There were no problems with the db connection either, because after manually creating the table, the insert and delete operations worked fine from the application.
for further use application.conf here
application.secret="PwleF1NyxkZ[8Oq`j`^NMg:6Vu6MMiHv?s:Ff>3@VpiKfA^9qSvb/E_>5[BRq>h6"
application.langs="en"
applyEvolutions.default=true
DapplyDownEvolutions.default=true
logger.root=ERROR
logger.play=INFO
logger.application=DEBUG
db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://localhost/sql_test"
db.default.user="testuser"
db.default.pass=""
and here 1.sql
CREATE TABLE task (
id int NOT NULL AUTO_INCREMENT,
label varchar(255),
PRIMARY KEY (ID)
);
DROP TABLE task;
source
share