AVP-78 Feature to check if parents looked at report card

This commit is contained in:
root
2026-02-27 01:21:39 -05:00
parent fe7b99581d
commit 3cc5546733
37 changed files with 743 additions and 107 deletions
@@ -1 +1,37 @@
Print all
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddPageSelectionToPrintRequests extends Migration
{
public function up()
{
if (! $this->db->tableExists('print_requests')) {
return;
}
if (! $this->db->fieldExists('page_selection', 'print_requests')) {
$this->forge->addColumn('print_requests', [
'page_selection' => [
'type' => 'VARCHAR',
'constraint' => 255,
'null' => true,
'after' => 'num_copies',
],
]);
}
}
public function down()
{
if (! $this->db->tableExists('print_requests')) {
return;
}
if ($this->db->fieldExists('page_selection', 'print_requests')) {
$this->forge->dropColumn('print_requests', 'page_selection');
}
}
}