This commit is contained in:
proelements
2025-11-13 15:18:34 +02:00
commit 9ac2bf2aa0
1178 changed files with 296944 additions and 0 deletions

View File

@@ -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
}
}