diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-06 20:01:34 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-06 20:01:34 -0400 |
commit | 28a4c86f7af4e7ed33ca19424c47e7b0ce054536 (patch) | |
tree | 77c134d779ae32cff7edf4d15bf775402d5fd089 /Makefile | |
parent | ce69f1064accb5023d36cd0acf474932a6f75988 (diff) |
Add sql dump of settings table
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -90,7 +90,10 @@ unittest: test-sqlite test-mysql test-postgres sql: @ pg_dump --schema-only --no-owner --file app/Schema/Sql/postgres.sql kanboard + @ pg_dump -d kanboard --column-inserts --data-only --table settings >> app/Schema/Sql/postgres.sql + @ mysqldump -uroot --quote-names --no-create-db --skip-comments --no-data --single-transaction kanboard | sed 's/ AUTO_INCREMENT=[0-9]*//g' > app/Schema/Sql/mysql.sql + @ mysqldump -uroot --quote-names --no-create-info --skip-comments --no-set-names kanboard settings >> app/Schema/Sql/mysql.sql @ php -r "echo 'INSERT INTO users (username, password, is_admin) VALUES (\'admin\', \''.password_hash('admin', PASSWORD_DEFAULT).'\', \'1\');';" | \ tee -a app/Schema/Sql/postgres.sql app/Schema/Sql/mysql.sql >/dev/null |