File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -434,8 +434,9 @@ public function addForeignKey(
434434 */
435435 public function dropKey (string $ table , string $ keyName , bool $ prefixKeyName = true ): bool
436436 {
437- $ keyName = $ this ->db ->escapeIdentifiers (($ prefixKeyName === true ? $ this ->db ->DBPrefix : '' ) . $ keyName );
438- $ table = $ this ->db ->escapeIdentifiers ($ this ->db ->DBPrefix . $ table );
437+ $ keyName = $ this ->db ->escapeIdentifiers (($ prefixKeyName === true ? $ this ->db ->DBPrefix : '' ) . $ keyName );
438+ $ table = $ this ->db ->escapeIdentifiers ($ this ->db ->DBPrefix . $ table );
439+
439440 $ dropKeyAsConstraint = $ this ->dropKeyAsConstraint ($ table , $ keyName );
440441
441442 if ($ dropKeyAsConstraint === true ) {
@@ -743,6 +744,7 @@ public function addColumn(string $table, $fields): bool
743744
744745 $ sqls = $ this ->_alterTable ('ADD ' , $ this ->db ->DBPrefix . $ table , $ this ->_processFields ());
745746 $ this ->reset ();
747+
746748 if ($ sqls === false ) {
747749 if ($ this ->db ->DBDebug ) {
748750 throw new DatabaseException ('This feature is not available for the database you are using. ' );
@@ -804,6 +806,7 @@ public function modifyColumn(string $table, $fields): bool
804806
805807 $ sqls = $ this ->_alterTable ('CHANGE ' , $ this ->db ->DBPrefix . $ table , $ this ->_processFields ());
806808 $ this ->reset ();
809+
807810 if ($ sqls === false ) {
808811 if ($ this ->db ->DBDebug ) {
809812 throw new DatabaseException ('This feature is not available for the database you are using. ' );
You can’t perform that action at this time.
0 commit comments