diff --git a/database/migrations/2026_02_23_204054_create_parent_attendance_reports_table.php b/database/migrations/2026_02_23_204054_create_parent_attendance_reports_table.php index 29589abb..547edf4a 100644 --- a/database/migrations/2026_02_23_204054_create_parent_attendance_reports_table.php +++ b/database/migrations/2026_02_23_204054_create_parent_attendance_reports_table.php @@ -25,6 +25,8 @@ CREATE TABLE `parent_attendance_reports` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `parent_attendance_reports` @@ -54,4 +56,4 @@ SQL { Schema::dropIfExists('parent_attendance_reports'); } -}; \ No newline at end of file +}; diff --git a/database/migrations/2026_02_23_204059_create_password_resets_table.php b/database/migrations/2026_02_23_204059_create_password_resets_table.php index 77a12a45..7e7f4595 100644 --- a/database/migrations/2026_02_23_204059_create_password_resets_table.php +++ b/database/migrations/2026_02_23_204059_create_password_resets_table.php @@ -16,26 +16,10 @@ CREATE TABLE `password_resets` ( `created_at` datetime NOT NULL, `expires_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; - --- -------------------------------------------------------- - --- --- Table structure for table `password_reset_requests` --- - - -CREATE TABLE `password_reset_requests` ( - -`id` int UNSIGNED NOT NULL, - - `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL, - - `requested_at` datetime NOT NULL - -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; SQL ); + App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `password_resets` ADD PRIMARY KEY (`id`); diff --git a/database/migrations/2026_02_23_204104_create_payment_notification_logs_table.php b/database/migrations/2026_02_23_204104_create_payment_notification_logs_table.php index 2584964b..5b786b5d 100644 --- a/database/migrations/2026_02_23_204104_create_payment_notification_logs_table.php +++ b/database/migrations/2026_02_23_204104_create_payment_notification_logs_table.php @@ -28,6 +28,8 @@ CREATE TABLE `payment_notification_logs` ( `created_at` datetime DEFAULT NULL, `sent_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `payment_notification_logs` diff --git a/database/migrations/2026_02_23_204106_create_paypal_transactions_table.php b/database/migrations/2026_02_23_204106_create_paypal_transactions_table.php index 85fa7869..0bfbcace 100644 --- a/database/migrations/2026_02_23_204106_create_paypal_transactions_table.php +++ b/database/migrations/2026_02_23_204106_create_paypal_transactions_table.php @@ -28,6 +28,8 @@ CREATE TABLE `paypal_transactions` ( `school_year` varchar(20) DEFAULT NULL, `semester` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' diff --git a/database/migrations/2026_02_23_204112_create_print_requests_table.php b/database/migrations/2026_02_23_204112_create_print_requests_table.php index 202502e8..b4964da5 100644 --- a/database/migrations/2026_02_23_204112_create_print_requests_table.php +++ b/database/migrations/2026_02_23_204112_create_print_requests_table.php @@ -23,6 +23,8 @@ CREATE TABLE `print_requests` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' diff --git a/database/migrations/2026_02_23_204125_create_role_permissions_table.php b/database/migrations/2026_02_23_204125_create_role_permissions_table.php index 3a58ede8..fcc32884 100644 --- a/database/migrations/2026_02_23_204125_create_role_permissions_table.php +++ b/database/migrations/2026_02_23_204125_create_role_permissions_table.php @@ -21,6 +21,8 @@ CREATE TABLE `role_permissions` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `role_permissions` diff --git a/database/migrations/2026_02_23_204127_create_sections_table.php b/database/migrations/2026_02_23_204127_create_sections_table.php index fd8c03b1..d9f0142e 100644 --- a/database/migrations/2026_02_23_204127_create_sections_table.php +++ b/database/migrations/2026_02_23_204127_create_sections_table.php @@ -16,6 +16,8 @@ CREATE TABLE `sections` ( `updated_at` datetime DEFAULT NULL, `updated_by` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `sections` diff --git a/database/migrations/2026_02_23_204129_create_settings_table.php b/database/migrations/2026_02_23_204129_create_settings_table.php index 1e78e789..ec0cf2fc 100644 --- a/database/migrations/2026_02_23_204129_create_settings_table.php +++ b/database/migrations/2026_02_23_204129_create_settings_table.php @@ -17,6 +17,8 @@ CREATE TABLE `settings` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `settings` diff --git a/database/migrations/2026_02_23_204134_create_student_class_table.php b/database/migrations/2026_02_23_204134_create_student_class_table.php index 0e7c3d27..9891996b 100644 --- a/database/migrations/2026_02_23_204134_create_student_class_table.php +++ b/database/migrations/2026_02_23_204134_create_student_class_table.php @@ -21,6 +21,8 @@ CREATE TABLE `student_class` ( `updated_at` datetime DEFAULT NULL, `updated_by` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `student_class` diff --git a/database/migrations/2026_02_23_204145_create_whatsapp_group_memberships_table.php b/database/migrations/2026_02_23_204145_create_whatsapp_group_memberships_table.php index 00f6fe11..78cbf6f4 100644 --- a/database/migrations/2026_02_23_204145_create_whatsapp_group_memberships_table.php +++ b/database/migrations/2026_02_23_204145_create_whatsapp_group_memberships_table.php @@ -22,6 +22,8 @@ CREATE TABLE `whatsapp_group_memberships` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `whatsapp_group_memberships` diff --git a/database/migrations/2026_02_23_900010_create_calendar_events_table.php b/database/migrations/2026_02_23_900010_create_calendar_events_table.php index ffc2dfe7..a1fec875 100644 --- a/database/migrations/2026_02_23_900010_create_calendar_events_table.php +++ b/database/migrations/2026_02_23_900010_create_calendar_events_table.php @@ -24,6 +24,8 @@ CREATE TABLE `calendar_events` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' diff --git a/database/migrations/2026_02_23_900017_create_classes_table.php b/database/migrations/2026_02_23_900017_create_classes_table.php index c9a10116..6c1069ec 100644 --- a/database/migrations/2026_02_23_900017_create_classes_table.php +++ b/database/migrations/2026_02_23_900017_create_classes_table.php @@ -17,6 +17,8 @@ CREATE TABLE `classes` ( `semester` varchar(255) NOT NULL, `school_year` varchar(9) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' diff --git a/database/migrations/2026_02_23_900021_create_competitions_table.php b/database/migrations/2026_02_23_900021_create_competitions_table.php index 60be6362..b92a634d 100644 --- a/database/migrations/2026_02_23_900021_create_competitions_table.php +++ b/database/migrations/2026_02_23_900021_create_competitions_table.php @@ -29,6 +29,8 @@ CREATE TABLE `competitions` ( `locked_at` datetime DEFAULT NULL, `locked_by` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `competitions` diff --git a/database/migrations/2026_02_23_900038_create_families_table.php b/database/migrations/2026_02_23_900038_create_families_table.php index 2bda16c6..8334326f 100644 --- a/database/migrations/2026_02_23_900038_create_families_table.php +++ b/database/migrations/2026_02_23_900038_create_families_table.php @@ -26,6 +26,8 @@ CREATE TABLE `families` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' diff --git a/database/migrations/2026_02_23_900054_create_support_requests_table.php b/database/migrations/2026_02_23_900054_create_support_requests_table.php index b7f8c7ae..d7c0a65e 100644 --- a/database/migrations/2026_02_23_900054_create_support_requests_table.php +++ b/database/migrations/2026_02_23_900054_create_support_requests_table.php @@ -20,6 +20,8 @@ CREATE TABLE `support_requests` ( `semester` varchar(255) NOT NULL, `school_year` varchar(9) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; +SQL + ); App\Support\SqliteCompat::statement(<<<'SQL' ALTER TABLE `support_requests`