PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 3.6.40
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v3.6.40
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Databases / Migrations / ScheduledActions.php

ScheduledActions.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 3.6.40, at app/Databases/Migrations/ScheduledActions.php

39 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Databases\Migrations;
4
5 class ScheduledActions
6 {
7 /**
8 * Migrate the table.
9 *
10 * @return void
11 */
12 public static function migrate()
13 {
14 global $wpdb;
15
16 $charsetCollate = $wpdb->get_charset_collate();
17 $table = $wpdb->prefix . 'ff_scheduled_actions';
18 if ($wpdb->get_var("SHOW TABLES LIKE '$table'") != $table) {
19 $sql = "CREATE TABLE $table (
20 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
21 `action` VARCHAR(255) NULL,
22 `form_id` BIGINT(20) UNSIGNED NULL,
23 `origin_id` BIGINT(20) UNSIGNED NULL,
24 `feed_id` BIGINT(20) UNSIGNED NULL,
25 `type` VARCHAR(255) DEFAULT 'submission_action',
26 `status` VARCHAR(255) NULL,
27 `data` LONGTEXT NULL,
28 `note` TINYTEXT NULL,
29 `retry_count` INT UNSIGNED DEFAULT 0,
30 `created_at` TIMESTAMP NULL,
31 `updated_at` TIMESTAMP NULL,
32 PRIMARY KEY (`id`)) $charsetCollate;";
33 require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
34 dbDelta($sql);
35 }
36
37 update_option('fluentform_scheduled_actions_migrated', 'yes', 'no');
38 }
39 }