mirror of
https://github.com/proelements/proelements.git
synced 2026-04-19 18:42:17 +00:00
v3.33.1
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user