File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,20 @@ private function autoSplit($sql)
5959 return $ sql ;
6060 }
6161
62+ /**
63+ * @param $split_chars
64+ * @return $this
65+ */
6266 public function setAutoSplitQuery ($ split_chars )
6367 {
6468 $ this ->_split_chars =$ split_chars ;
69+ return $ this ;
6570 }
71+
72+ /**
73+ * @param $sql
74+ * @return $this
75+ */
6676 public function addSqlUpdate ($ sql )
6777 {
6878 $ sql =$ this ->autoSplit ($ sql );
@@ -80,8 +90,13 @@ public function addSqlUpdate($sql)
8090 {
8191 $ this ->_sql_up []=$ sql ;
8292 }
83-
93+ return $ this ;
8494 }
95+
96+ /**
97+ * @param $sql
98+ * @return $this
99+ */
85100 public function addSqlDowngrade ($ sql )
86101 {
87102 $ sql =$ this ->autoSplit ($ sql );
@@ -93,6 +108,7 @@ public function addSqlDowngrade($sql)
93108 {
94109 $ this ->_sql_down []=$ sql ;
95110 }
111+ return $ this ;
96112 }
97113
98114 /**
You can’t perform that action at this time.
0 commit comments