diff --git a/conf/application.conf b/conf/application.conf index fef0ef3..7288d2e 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -33,8 +33,8 @@ application.langs="en" # You can declare as many datasources as you want. # By convention, the default datasource is named `default` # -# db.default.driver=org.h2.Driver -# db.default.url="jdbc:h2:mem:play" +db.default.driver=org.h2.Driver +db.default.url="jdbc:h2:mem:play" # db.default.user=sa # db.default.password="" diff --git a/conf/evolutions/default/1.sql b/conf/evolutions/default/1.sql new file mode 100644 index 0000000..b83c199 --- /dev/null +++ b/conf/evolutions/default/1.sql @@ -0,0 +1,14 @@ +# Tasks schema + +# --- !Ups + +CREATE SEQUENCE task_id_seq; +CREATE TABLE task ( + id integer NOT NULL DEFAULT nextval('task_id_seq'), + label varchar(255) +); + +# --- !Downs + +DROP TABLE task; +DROP SEQUENCE task_id_seq;