From b2fc02348b2e595927383af83cc096387acfc4e2 Mon Sep 17 00:00:00 2001 From: Mihail Date: Tue, 13 Oct 2015 10:21:35 +0300 Subject: [PATCH] add migration PrefixDelete function --- console/migrations/m151013_062829_deletePrefixFunction.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+), 0 deletions(-) create mode 100644 console/migrations/m151013_062829_deletePrefixFunction.php diff --git a/console/migrations/m151013_062829_deletePrefixFunction.php b/console/migrations/m151013_062829_deletePrefixFunction.php new file mode 100644 index 0000000..a21c63f --- /dev/null +++ b/console/migrations/m151013_062829_deletePrefixFunction.php @@ -0,0 +1,51 @@ +execute($find_prefix); + $this->execute($delete_prefix); + + } + + public function safedown() + { + $sql = + 'drop FUNCTION IF EXIST FindPrefix; + drop FUNCTION IF EXIST DeletePrefix;'; + + $this->execute($sql); + } + + +} -- libgit2 0.21.4