From 4958e8a8d243413d03e9149faee9b1cccf478c95 Mon Sep 17 00:00:00 2001 From: Jeremy Bunting Date: Tue, 25 Sep 2018 07:33:56 -0400 Subject: [PATCH 1/3] Added steps for install from the blog post Initial setup isn't completely clear from the docs, so I've taken the language from the blog [post here](https://nystudio107.com/blog/database-asset-syncing-between-environments-in-craft-cms) and put them in the readme. They're nice concise instructions, and it seems to make sense to put them inline with the repo. Open to suggestions, let me know what you think, these scripts are an absolute lifesaver --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 52a4499..25298af 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ There are several scripts included in `craft-scripts`, each of which perform dif Craft-Scripts works with both Craft 2.x & Craft 3.x, and has built-in support for both `mysql` as well as `postgres` databases. +## Installation +* Copy the scripts folder into the root directory of your Craft CMS project +* Duplicate the example.env.sh file, and rename it to .env.sh +* Add .env.sh to your .gitignore file +* Then open up the .env.sh file into your favorite editor, and replace REPLACE_ME with the appropriate settings. + ## Upgrading To upgrade to a later version of Craft-Scripts, replace the contents of your `scripts` folder with the newest Craft-Scripts, while preserving your existing `.env.sh` file. From 9673d18a4b7b894baf856fec0bde81889609b691 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Mon, 29 Oct 2018 19:45:07 -0400 Subject: [PATCH 2/3] Add templatecachequeries to the db tables excluded Signed-off-by: Andrew Welch --- scripts/common/common_db.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/common/common_db.sh b/scripts/common/common_db.sh index fd2b9c2..940c9ba 100644 --- a/scripts/common/common_db.sh +++ b/scripts/common/common_db.sh @@ -20,6 +20,7 @@ EXCLUDED_DB_TABLES=( "templatecaches" "templatecachecriteria" "templatecacheelements" + "templatecachequeries" ) TMP_DB_DUMP_CREDS_PATH="/tmp/craftscripts.creds" From 5e46812a74dd83c14f8e635b3afa32fd236da808 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Mon, 29 Oct 2018 19:46:36 -0400 Subject: [PATCH 3/3] Version 1.2.9 Signed-off-by: Andrew Welch --- CHANGELOG.md | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 683a042..37cf3df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Craft-Scripts Changelog +## 1.2.9 - 2018.10.29 +### Changed +* Add `templatecachequeries` to the db tables excluded from database dumps + ## 1.2.8 - 2018.08.20 ### Changed * Refactor out to functions thanks to `preposthuman ` diff --git a/composer.json b/composer.json index bbd08c3..cfaa2cb 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "nystudio107/craft-scripts", "description": "Shell scripts to manage database backups, asset backups, file permissions, asset syncing, cache clearing, and database syncing between Craft CMS environments", - "version": "1.2.8", + "version": "1.2.9", "keywords": [ "craft", "craftcms",