Using a Makefile for running maven ('mvn') and additional commands , instead of the up.sh-file
1.1 the standard way to do things
1.2 NB: you can create a MariaDB/MYSQL by sending arguments to a recipe in the makefile (see below)
$ make create_db DB_USER=my_user DB_PSW=my_password
tables.sql has been updated.
2.1 divided into additional 'changesets' - making the footprint of each 'changeset' smaller (could even be made even smaller)
2.2 removed the table-attribute 'ENGINE=InnoDB' and 'DEFAULT CHARSET=utf8;'
2.3 NB. ENGINE=myisam is still there
exampledata.sql has been updated.
3.1 was lacking '-- liquibase formatted sql' and did not contain any 'changesets'
additional_alter_statements.sql has been added
4.1 four 'alter table' due to problems with insert from the exampledata.sql - lacking 'default'-value
4.2 NB : Should be moved to tables.sql
db.changelog-master.xml has been updated.
5.1 includes a reference to tables.sql + additional_alter_statements.sql + exampledata.sql
Test:
mysql> select count(*) from DATABASECHANGELOG;
+----------+
| count(*) |
+----------+
| 199 |
+----------+
1 row in set (0.00 sec)
ToDo, when it comes to 'Running with Liquibase'
Add a recipe to the Makefile, for creating and dropping a postgreSQL-database
is there any documentaion on functions.sql, optional.sql and triggers.sql - we are not using those right now
Go through the changesets in tables.sql , making them even more coherent
Hi Paul,
The following has been done:
Using a Makefile for running maven ('mvn') and additional commands , instead of the up.sh-file 1.1 the standard way to do things 1.2 NB: you can create a MariaDB/MYSQL by sending arguments to a recipe in the makefile (see below)
$ make create_db DB_USER=my_user DB_PSW=my_password
tables.sql has been updated. 2.1 divided into additional 'changesets' - making the footprint of each 'changeset' smaller (could even be made even smaller) 2.2 removed the table-attribute 'ENGINE=InnoDB' and 'DEFAULT CHARSET=utf8;' 2.3 NB. ENGINE=myisam is still there
exampledata.sql has been updated. 3.1 was lacking '-- liquibase formatted sql' and did not contain any 'changesets'
additional_alter_statements.sql has been added 4.1 four 'alter table' due to problems with insert from the exampledata.sql - lacking 'default'-value 4.2 NB : Should be moved to tables.sql
db.changelog-master.xml has been updated. 5.1 includes a reference to tables.sql + additional_alter_statements.sql + exampledata.sql
Test:
ToDo, when it comes to 'Running with Liquibase'