add all controllers logic

This commit is contained in:
root
2026-03-11 17:53:15 -04:00
parent 3e6c577085
commit 2ef71cc92b
421 changed files with 12009 additions and 5211 deletions
@@ -7,6 +7,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('users')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `users` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('students')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `students` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('expenses')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `expenses` (
`id` int UNSIGNED NOT NULL,
@@ -7,6 +7,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('current_incident')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `current_incident` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('incident')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `incident` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('grading_locks')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `grading_locks` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('homework')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `homework` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('inventory_categories')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `inventory_categories` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('inventory_items')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `inventory_items` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('inventory_movements')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `inventory_movements` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('invoice_event')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `invoice_event` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('invoices')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `invoices` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('invoice_students_list')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `invoice_students_list` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('ip_attempts')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `ip_attempts` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('late_slip_logs')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `late_slip_logs` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('login_activity')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `login_activity` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('manual_payments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `manual_payments` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('messages')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `messages` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('midterm_exam')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `midterm_exam` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('missing_score_overrides')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `missing_score_overrides` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('nav_items')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `nav_items` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('notifications')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `notifications` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('parent_attendance_reports')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `parent_attendance_reports` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('parent_meeting_schedules')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `parent_meeting_schedules` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('parents')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `parents` (
`id` int NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('parent_notifications')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `parent_notifications` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('participation')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `participation` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('password_resets')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `password_resets` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('password_reset_requests')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `password_reset_requests` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('reimbursement_batches')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `reimbursement_batches` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('paypal_payments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `paypal_payments` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('reimbursements')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `reimbursements` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('payment_error')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `payment_error` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('payments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `payments` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('payment_notification_logs')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `payment_notification_logs` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('payment_transactions')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `payment_transactions` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('paypal_transactions')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `paypal_transactions` (
`id` int NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('permissions')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `permissions` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('placement_batches')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `placement_batches` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('placement_levels')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `placement_levels` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('placement_scores')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `placement_scores` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('user_preferences')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `user_preferences` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('print_requests')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `print_requests` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('project')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `project` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('promotion_queue')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `promotion_queue` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('quiz')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `quiz` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('refunds')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `refunds` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('reimbursement_batch_admin_files')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `reimbursement_batch_admin_files` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('roles')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `roles` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('role_nav_items')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `role_nav_items` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('role_permissions')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `role_permissions` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('score_comments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `score_comments` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('sections')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `sections` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('semester_scores')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `semester_scores` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('settings')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `settings` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('staff_attendance')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `staff_attendance` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('staff')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `staff` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('student_allergies')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `student_allergies` (
`id` int NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('student_class')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `student_class` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('student_medical_conditions')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `student_medical_conditions` (
`id` int NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('subject_curriculum_items')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `subject_curriculum_items` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('teacher_class')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `teacher_class` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('teacher_submission_notification_history')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `teacher_submission_notification_history` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('user_notifications')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `user_notifications` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('user_roles')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `user_roles` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('whatsapp_group_links')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `whatsapp_group_links` (
`id` int NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('whatsapp_group_memberships')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `whatsapp_group_memberships` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('whatsapp_invites_log')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `whatsapp_invites_log` (
`id` int NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('class_progress_reports')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `class_progress_reports` (
`id` int UNSIGNED NOT NULL,
@@ -7,6 +7,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('report_card_acknowledgements')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `report_card_acknowledgements` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('class_progress_attachments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `class_progress_attachments` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('reimbursement_batch_items')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `reimbursement_batch_items` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('additional_charges')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `additional_charges` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('admin_notification_subjects')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `admin_notification_subjects` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('attendance_comment_template')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `attendance_comment_template` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('attendance_data')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `attendance_data` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('attendance_day')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `attendance_day` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('attendance_record')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `attendance_record` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('attendance_tracking')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `attendance_tracking` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('authorized_users')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `authorized_users` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('badge_print_logs')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `badge_print_logs` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('calendar_events')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `calendar_events` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('chapters')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `chapters` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('classSection')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `classSection` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('class_prep_adjustments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `class_prep_adjustments` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('class_preparation_log')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `class_preparation_log` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('classes')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `classes` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('competition_class_winners')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `competition_class_winners` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('competition_scores')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `competition_scores` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('competition_winners')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `competition_winners` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('competitions')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `competitions` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('configuration')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `configuration` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('contactus')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `contactus` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('current_flag')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `current_flag` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('discount_usages')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `discount_usages` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('discount_vouchers')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `discount_vouchers` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('early_dismissal_signatures')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `early_dismissal_signatures` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('email_templates')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `email_templates` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('emergency_contacts')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `emergency_contacts` (
`id` int UNSIGNED NOT NULL,
@@ -8,6 +8,10 @@ return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('enrollments')) {
return;
}
App\Support\SqliteCompat::statement(<<<'SQL'
CREATE TABLE `enrollments` (
`id` int UNSIGNED NOT NULL,

Some files were not shown because too many files have changed in this diff Show More