ActionScheduler_ListTable::recreate_tables() – Force the data store schema updates.

You appear to be a bot. Output may be restricted

Description

Force the data store schema updates.

Usage

ActionScheduler_ListTable::recreate_tables();

Parameters

Returns

void

Source

File name: woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php


Lines:

1 to 16 of 16
  protected function recreate_tables() {
    if ( is_a( $this->store, 'ActionScheduler_HybridStore' ) ) {
      $store = $this->store;
    } else {
      $store = new ActionScheduler_HybridStore();
    }
    add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );

    $store_schema  = new ActionScheduler_StoreSchema();
    $logger_schema = new ActionScheduler_LoggerSchema();
    $store_schema->register_tables( true );
    $logger_schema->register_tables( true );

    remove_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10 );
  }
 

 View on GitHub View on Trac