HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/scientificreligi/.trash/elementor-pro/modules/notes/database/migrations/add-route-post-id.php
<?php
namespace ElementorPro\Modules\Notes\Database\Migrations;

use ElementorPro\Modules\Notes\Module;
use ElementorPro\Core\Database\Base_Migration;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Add_Route_Post_Id extends Base_Migration {
	/**
	 * @inheritDoc
	 */
	public function up() {
		$this->add_columns( Module::TABLE_NOTES, [
			'route_post_id' => 'bigint(20) unsigned null comment "The post id of the route that the note was created on." AFTER `route_title`',
		] );
	}

	/**
	 * @inheritDoc
	 */
	public function down() {
		$this->drop_columns( Module::TABLE_NOTES, [ 'route_post_id' ] );
	}
}