PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php +17 -6 1.2.0 → trunk View file →
@@ -10,16 +10,23 @@
10 10 class ActionScheduler_LoggerSchema extends ActionScheduler_Abstract_Schema {
11 11 const LOG_TABLE = 'actionscheduler_logs';
12 12
13 13 /**
14 - * @var int Increment this value to trigger a schema update.
14 + * Schema version.
15 + *
16 + * Increment this value to trigger a schema update.
17 + *
18 + * @var int
15 19 */
16 20 protected $schema_version = 3;
17 21
22 + /**
23 + * Construct.
24 + */
18 25 public function __construct() {
19 - $this->tables = [
26 + $this->tables = array(
20 27 self::LOG_TABLE,
21 - ];
28 + );
22 29 }
23 30
24 31 /**
25 32 * Performs additional setup work required to support this schema.
@@ -27,16 +34,20 @@
27 34 public function init() {
28 35 add_action( 'action_scheduler_before_schema_update', array( $this, 'update_schema_3_0' ), 10, 2 );
29 36 }
30 37
38 + /**
39 + * Get table definition.
40 + *
41 + * @param string $table Table name.
42 + */
31 43 protected function get_table_definition( $table ) {
32 44 global $wpdb;
33 - $table_name = $wpdb->$table;
34 - $charset_collate = $wpdb->get_charset_collate();
45 + $table_name = $wpdb->$table;
46 + $charset_collate = $wpdb->get_charset_collate();
35 47 switch ( $table ) {
36 48
37 49 case self::LOG_TABLE:
38 -
39 50 $default_date = ActionScheduler_StoreSchema::DEFAULT_DATE;
40 51 return "CREATE TABLE $table_name (
41 52 log_id bigint(20) unsigned NOT NULL auto_increment,
42 53 action_id bigint(20) unsigned NOT NULL,