diff --git a/deploy.php b/deploy.php index 205b1dd..7d75b37 100644 --- a/deploy.php +++ b/deploy.php @@ -125,6 +125,9 @@ task('shop:cloneDatabase', function () { info('cloning database'); $auth = "-h".$source_host." -P".$source_port." -u".$source_user." -p'".$source_pass."'"; run("{{bin/mysqldump}} ".$auth." --opt --no-create-db -f ".$source_name." $({{bin/mysql}} ".$auth." -ANe\"SET group_concat_max_len = 10485760; SELECT GROUP_CONCAT(table_name SEPARATOR ' ') FROM information_schema.tables WHERE table_schema='".$source_name."' AND engine IS NOT NULL;\") | {{bin/mysql}} --defaults-extra-file={{db_conf_path}} -f {{db_name}}"); + info('creating views'); + run('{{release_or_current_path}}/vendor/bin/oe-eshop-db_views_regenerate'); + info('successfully finished'); } else { info('abborted'); }