<?php
/**
 * Functions for updating data, used by the background updater.
 */

defined( 'ABSPATH' ) || exit;

use KaizenCoders\MagicLink\Install;

/* --------------------- 1.1.0 (Start)--------------------------- */

/**
 * Create Magic Link Table
 *
 * @since 1.1.0
 */
function kc_ml_update_110_create_tables() {
	Install::create_tables( '1.1.0' );
}

function kc_ml_update_110_update_options() {
	Install::create_options( '1.1.0' );
}

/* --------------------- 1.0.1 (End)--------------------------- */


function kc_ml_update_117_update_options() {
	Install::create_options( '1.1.7' );
}

/* --------------------- 1.0.7 (End)--------------------------- */

function kc_ml_update_119_update_options() {
	Install::create_options( '1.1.9' );

	$options_to_remove = [
		'general|settings|ip_address_check',
	];

	Install::remove_options( $options_to_remove );
}

/* --------------------- 1.0.9 (End)--------------------------- */