LLMS_DB_Upgrader::__construct( string $db_version, null|array[] $updates = null )
Constructor
Description Description
See also See also
- includes/schemas/llms-db-updates.php: For an example updates schema.
Parameters Parameters
- $db_version
-
(string) (Required) The DB version that is being upgraded from.
- $updates
-
(null|array[]) (Optional) A list of database updates conforming to the database updates schema or null to load the LifterLMS core schema.
Default value: null
Source Source
File: includes/class-llms-db-ugrader.php
public function __construct( $db_version, $updates = null ) { $this->updater = LLMS_Install::$background_updater; // Background updates may trigger a notice during a cron and notices might not be available. require_once LLMS_PLUGIN_DIR . 'includes/admin/class.llms.admin.notices.php'; if ( is_null( $updates ) ) { $updates = require LLMS_PLUGIN_DIR . 'includes/schemas/llms-db-updates.php'; } $this->db_version = $db_version; $this->updates = $updates; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |