PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.3.4
JetFormBuilder — Dynamic Blocks Form Builder v3.3.4
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / includes / migrations / versions / version-3-1-7.php
version-3-1-7.php
38 lines 696 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace Jet_Form_Builder\Migrations\Versions;
5
6 use JFB_Modules\Form_Record\Models\Record_Model;
7
8 // If this file is called directly, abort.
9 if ( ! defined( 'WPINC' ) ) {
10 die;
11 }
12
13 class Version_3_1_7 extends Base_Migration {
14
15 public function up( \wpdb $wpdb ) {
16 $records = new Record_Model();
17
18 // phpcs:disable WordPress.DB
19 $wpdb->query(
20 "
21 ALTER TABLE `{$records->table()}` CHANGE `user_agent` `user_agent` TEXT NULL DEFAULT NULL
22 "
23 );
24 }
25
26 public function down( \wpdb $wpdb ) {
27 $records = new Record_Model();
28
29 $wpdb->query(
30 "
31 ALTER TABLE `{$records->table()}` CHANGE `user_agent` `user_agent` VARCHAR(255) NULL DEFAULT NULL
32 "
33 );
34 // phpcs:enable WordPress.DB
35 }
36
37 }
38