add feature do not show again job for parent portal
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m21s

This commit is contained in:
root
2026-09-03 00:02:07 -04:00
parent 46769e8b27
commit 02fd6e4863
6 changed files with 386 additions and 40 deletions
@@ -0,0 +1,42 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddHideJobOpeningsPopupToPreferences extends Migration
{
public function up()
{
if (! $this->db->tableExists('user_preferences')) {
return;
}
if (! $this->db->fieldExists('hide_job_openings_popup', 'user_preferences')) {
$definition = [
'type' => 'TINYINT',
'constraint' => 1,
'default' => 0,
'null' => false,
];
if ($this->db->fieldExists('menu_custom_mode', 'user_preferences')) {
$definition['after'] = 'menu_custom_mode';
}
$this->forge->addColumn('user_preferences', [
'hide_job_openings_popup' => $definition,
]);
}
}
public function down()
{
if (
$this->db->tableExists('user_preferences')
&& $this->db->fieldExists('hide_job_openings_popup', 'user_preferences')
) {
$this->forge->dropColumn('user_preferences', 'hide_job_openings_popup');
}
}
}