HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/ddir12/up/elementor-pro/modules/notes/database/migrations/add-author-display-name.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_Author_Display_Name extends Base_Migration {
	/**
	 * @inheritDoc
	 */
	public function up() {
		$this->add_columns( Module::TABLE_NOTES, [
			'author_display_name' => 'varchar(250) null comment "Save the author name when the author was deleted." AFTER `author_id`',
		] );
	}

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