From e1968e4b1d1032f3ec090b24469d34ebf7a87eb1 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Fri, 10 Apr 2026 13:28:03 +0530 Subject: [PATCH] db: Add opd_cont_paper_print column to doctor_master table --- ...042_AddOpdContPaperPrintToDoctorMaster.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/Database/Migrations/2026-04-10-000042_AddOpdContPaperPrintToDoctorMaster.php diff --git a/app/Database/Migrations/2026-04-10-000042_AddOpdContPaperPrintToDoctorMaster.php b/app/Database/Migrations/2026-04-10-000042_AddOpdContPaperPrintToDoctorMaster.php new file mode 100644 index 0000000..19076e3 --- /dev/null +++ b/app/Database/Migrations/2026-04-10-000042_AddOpdContPaperPrintToDoctorMaster.php @@ -0,0 +1,31 @@ +db->tableExists('doctor_master')) { + $fields = [ + 'opd_cont_paper_print' => [ + 'type' => 'VARCHAR', + 'constraint' => 100, + 'null' => true, + 'after' => 'opd_blank_print', + ], + ]; + + $this->forge->addColumn('doctor_master', $fields); + } + } + + public function down() + { + if ($this->db->tableExists('doctor_master') && $this->db->fieldExists('opd_cont_paper_print', 'doctor_master')) { + $this->forge->dropColumn('doctor_master', 'opd_cont_paper_print'); + } + } +}