summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-07 19:52:46 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-07 19:52:46 -0400
commit735c99e4ae360000254710c631cc201290df331a (patch)
tree55b1b81995b0cba2ad0577a875beaa95f67288a7 /Makefile
parent032341f55d1d023decb4184874858c08423092d9 (diff)
Add default links in sql dump
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e56458e9..62fa341f 100644
--- a/Makefile
+++ b/Makefile
@@ -91,9 +91,11 @@ 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
+ @ pg_dump -d kanboard --column-inserts --data-only --table links >> 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
+ @ mysqldump -uroot --quote-names --no-create-info --skip-comments --no-set-names kanboard links >> 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