-
Uncomment the following line in app/conf/application.conf:
db=mem
-
Create a database document_versioning using the following command:
mysql> create database document_versioning;
-
Uncomment the following line in app/conf/application.conf of:
db=mysql:root@document_versioning
-
It is possible that you encounter a problem of dependency (MySQL 5.5), please try execute following command:
$ mysql -u root mysql> use document_versioning mysql> alter table Document add constraint fk_document_user foreign key (author_id) references user(id); mysql> alter table Version add constraint fk_version_document foreign key (document_id) references document(id); mysql> alter table Comment add constraint fk_comment_version foreign key (version_id) references version(id);