Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,27 @@ public function update($previousVersion = false){
foreach($conversion as $old => $new){

try{
Symphony::Database()->query(
sprintf("UPDATE `tbl_fields_textarea` SET `formatter` = '%s' WHERE `formatter` = '%s'", $new, $old)
);
Symphony::Database()
->update('tbl_fields_textarea')
->set([
'formatter' => $new,
])
->where(['formatter' => $old])
->execute()
->success();
}
catch(Exception $e){
}

try{
Symphony::Database()->query(
sprintf("UPDATE `tbl_fields_textbox` SET `text_formatter` = '%s' WHERE `text_formatter` = '%s'", $new, $old)
);
Symphony::Database()
->update('tbl_fields_textbox')
->set([
'text_formatter' => $new,
])
->where(['text_formatter' => $old])
->execute()
->success();
}
catch(Exception $e){
}
Expand Down
5 changes: 5 additions & 0 deletions extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
</author>
</authors>
<releases>
<release version="2.0.0" date="TBA" min="4.0.0" max="4.x.x" php-min="5.6.x" php-max="7.x.x">
- Update for Symphony 4.x
- PHP7 Compatibility
- Code refactoring for Database
</release>
<release version="1.21" date="2015-01-23" min="2.4" max="2.x.x">
- Mark compatibility with Symphony 2.x.x
</release>
Expand Down
Loading