There are some tricks that may come in handy.
Firstly, the MySQL notation /*! */allows you to add code that will obey MySQL, but other DBs ignore it, for example:
create table Users (
id bigint not null auto_increment,
name varchar(40)
)
, MySQL H2. MySQL-ism, , , MySQL, , , - MySQL PostgreSQL, /*! */, PostgreSQL H2, .
dev prod, , , prod. , , , dev- play run prod- play stage; target/start. target/start -Dconfig.resource. , prod.conf prod, :
include "application.conf"
db.default.driver=...
db.default.url=...
...
start_prod script, :
#!/bin/sh
target/start -Dconfig.resource=prod.conf
, application.conf prod conf dev.conf, , , , script prod (, , JVM/memory/GC rc.d - ).