Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/elementor-pro   php

Repository URL to install this package:

Version: 3.2.1 

/ forms / submissions / database / migrations / referer-extra.php

<?php
namespace ElementorPro\Modules\Forms\Submissions\Database\Migrations;

class Referer_Extra extends Base_Migration {
	public function run() {
		$max_index_length = static::MAX_INDEX_LENGTH;

		// phpcs:disable
		$this->wpdb->query("
			ALTER TABLE `{$this->query->get_table_submissions()}`
			ADD COLUMN `referer_title` varchar(300) null AFTER `referer`;
		");

		$this->wpdb->query("
			ALTER TABLE `{$this->query->get_table_submissions()}`
			ADD INDEX `referer_index` (`referer`({$max_index_length})),
			ADD INDEX `referer_title_index` (`referer_title`({$max_index_length}));
		");
		// phpcs:enable
	}
}