create views after database cloning
Cette révision appartient à :
Parent
5b4a66a5f0
révision
8ff4b2f167
@ -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');
|
||||
}
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user