Commit 1f9a209d authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(migration): use BIGINT UNSIGNED for FK columns matching parent tables

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 9342a5ee
......@@ -4,8 +4,8 @@ declare(strict_types=1);
return [
'up' => "
CREATE TABLE IF NOT EXISTS hr_weekly_schedules (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
employee_profile_id INT UNSIGNED NOT NULL,
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
employee_profile_id BIGINT UNSIGNED NOT NULL,
day_of_week ENUM('saturday','sunday','monday','tuesday','wednesday','thursday','friday') NOT NULL,
shift_id INT UNSIGNED NULL,
start_time TIME NULL,
......@@ -21,8 +21,8 @@ CREATE TABLE IF NOT EXISTS hr_weekly_schedules (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS hr_job_descriptions (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
job_title_id INT UNSIGNED NOT NULL,
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
job_title_id BIGINT UNSIGNED NOT NULL,
purpose_ar TEXT NULL,
responsible_authority VARCHAR(200) NULL,
relationships VARCHAR(200) NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment