Skip to content
Snippets Groups Projects
Commit d3b79a72 authored by Laurent's avatar Laurent
Browse files

dev #21988 consultation pnb

apply sql patch from emacs
parent 796985ba
Branches
Tags
4 merge requests!780Master,!767Master,!764Dev#21988 consultation pnb,!753Dev#21988 consultation pnb
<?php
require('console.php');
require('cosmogramme/sql/patch/patch_'.$argv[1].'.php');
echo "done\n";
?>
\ No newline at end of file
......@@ -356,6 +356,17 @@
)
(defun phafi-sql-patch(patch)
"Force execution of db migration"
(interactive (list (read-number "Enter patch number: ")))
(async-shell-command (concat
"cd " (phafi-root-dir) ";"
"php scripts/apply_patch.php "(number-to-string patch)
))
)
(defun phafi-root-dir()
(concat
(file-name-directory phafi-phpunit-config) "../")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment