recreate project

This commit is contained in:
root
2026-02-10 22:11:06 -05:00
commit 663c0cdbda
10149 changed files with 1379710 additions and 0 deletions
@@ -0,0 +1,40 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class UpdatePlacementLevelRange extends Migration
{
public function up()
{
if (!$this->db->tableExists('placement_levels')) {
return;
}
$fields = $this->db->getFieldNames('placement_levels');
if (!in_array('level', $fields, true)) {
return;
}
$this->forge->modifyColumn('placement_levels', [
'level' => ['type' => 'SMALLINT', 'constraint' => 3, 'unsigned' => true],
]);
}
public function down()
{
if (!$this->db->tableExists('placement_levels')) {
return;
}
$fields = $this->db->getFieldNames('placement_levels');
if (!in_array('level', $fields, true)) {
return;
}
$this->forge->modifyColumn('placement_levels', [
'level' => ['type' => 'TINYINT', 'constraint' => 1, 'unsigned' => true],
]);
}
}