LLMS_DB_Upgrader::__construct( string $db_version, null|array[] $updates = null )

Constructor


Description Description

See also See also


Top ↑

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


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.