hi
i'm trying to update HA 2 node setup, i pull updates on both servers, then when i try to update pending database updates i get
Any ideas as to why this is happening and how to fix it?
Thanks
y
i'm trying to update HA 2 node setup, i pull updates on both servers, then when i try to update pending database updates i get
Code:
php artisan migrate:status
Migration name ............................................................. Batch / Status
2019_12_14_000001_create_personal_access_tokens_table ............................. Pending
2022_02_01_074017_create_sessions_table ........................................... Pending
2022_02_27_165517_create_password_resets_table .................................... Pending
2022_03_10_065030_create_user_domain_permission_table ............................. Pending
2022_04_20_215315_create_messages_table ........................................... Pending
2022_06_10_173727_user_name_info .................................................. Pending
2022_06_10_191009_rename_username ................................................. Pending
2022_06_26_193813_create_nemerald_app_users_table ................................. Pending
2022_06_28_193133_create_archive_recording ........................................ Pending
2022_07_09_142022_add_key_in_archive .............................................. Pending
2022_07_13_151759_change_u_u_i_d .................................................. Pending
2022_07_31_182545_create_failed_jobs_table ........................................ Pending
2022_08_18_054043_rename_app_table ................................................ Pending
2022_08_19_054211_add_status_to_mobile_app_users_table ............................ Pending
2022_12_03_073359_create_domain_groups_table ...................................... Pending
2022_12_04_154854_create_domain_group_relations_table ............................. Pending
2022_12_04_214810_create_user_domain_group_permissions_table ...................... Pending
2022_12_13_020849_create_webhook_calls_table ...................................... Pending
2023_01_18_000038_create_fax_allowed_emails_table ................................. Pending
2023_01_18_000135_create_fax_allowed_domain_names_table ........................... Pending
2024_01_30_200000_add_two_factor_columns_to_users_table ........................... Pending
2024_04_04_204123_add_two_factor_cookies_column_to_users_table .................... Pending
2024_05_02_055503_add_reference_id_to_messages_table .............................. Pending
2024_05_14_054105_create_activity_log_table ....................................... Pending
2024_05_16_191010_add_expires_at_to_personal_access_tokens_table .................. Pending
2024_05_21_052842_modify_migrations_table_to_use_uuids ............................ Pending
2024_05_21_162557_add_domain_uuid_to_activity_log_table ........................... Pending
2024_06_24_180349_create_extension_advanced_settings_table ........................ Pending
2024_07_03_153944_create_mobile_app_password_reset_links_table .................... Pending
2024_08_01_195937_drop_foreign_keys_in_relations .................................. Pending
2024_08_02_032654_update_cdr_table_add_status_field_if_not_exists ................. Pending
2024_08_20_062352_convert_text_to_uuid_in_relations ............................... Pending
2024_10_07_072614_create_pro_features_table ....................................... Pending
2024_10_21_204103_add_call_flow_to_v_xml_cdr_table ................................ Pending
2024_11_19_220709_create_whitelisted_numbers_table ................................ Pending
2024_12_01_194602_add_description_to_whitelisted_numbers_table .................... Pending
2024_12_19_324567_add_domain_to_mobile_app_password_reset_links_table ............. Pending
2025_02_14_021947_add_exclude_from_stale_report_to_mobile_app_users_table ......... Pending
2025_02_28_070016_create_wakeup_calls_table ....................................... Pending
2025_03_11_053022_create_wakeup_auth_ext_table .................................... Pending
2025_03_27_043634_create_emergency_calls_table .................................... Pending
2025_03_27_043753_create_emergency_call_members_table ............................. Pending
2025_04_09_042232_create_emergency_call_emails_table .............................. Pending
2025_04_29_004308_create_payment_gateways_and_gateway_settings_tables ............. Pending
2025_05_01_144332_create_business_hours_table ..................................... Pending
2025_05_01_144335_create_business_hour_periods_table .............................. Pending
2025_05_01_144337_create_business_hour_exceptions_table ........................... Pending
2025_06_19_052520_add_media_to_messages_table ..................................... Pending
2025_06_20_104709_create_cloud_provisioning_table ................................. Pending
2025_07_09_160113_add_primary_key_to_device_cloud_provisioning .................... Pending
2025_07_18_043755_create_v_sms_messages_table ..................................... Pending
2025_07_18_043904_create_v_sms_destinations_table ................................. Pending
2025_07_24_051536_add_extension_uuid_to_v_users_table ............................. Pending
2025_08_06_053911_create_locations_table .......................................... Pending
2025_08_13_060033_create_locationables_table ...................................... Pending
2025_08_16_052308_add_serial_number_to_v_devices_table ............................ Pending
2025_08_18_214748_create_provisioning_templates ................................... Pending
2025_08_21_175400_add_device_template_uuid_to_v_devices_table ..................... Pending
2025_08_29_210825_create_hotel_rooms_table copy ................................... Pending
2025_08_29_212048_create_hotel_room_status_table .................................. Pending
2025_09_02_000001_create_hotel_housekeeping_definitions_table ..................... Pending
2025_09_18_184333_create_ceretax_transactions_table ............................... Pending
2025_09_19_034557_create_billing_products_table ................................... Pending
2025_09_22_225113_add_primary_key_to_payment_gateways ............................. Pending
2025_09_22_225915_add_primary_key_to_gateway_settings ............................. Pending
2025_10_01_053802_create_email_log ................................................ Pending
2025_10_01_182153_create_hotel_pending_actions .................................... Pending
2025_10_19_061650_create_call_transcription_providers_table ....................... Pending
2025_10_19_062447_call_create_transcription_policy_table .......................... Pending
2025_10_19_062950_call_create_transcription_provider_config_table ................. Pending
2025_10_28_181730_create_call_transcriptions_table ................................ Pending
2026_01_22_210215_create_device_keys_table ........................................ Pending
php artisan migrate
APPLICATION IN PRODUCTION.
┌ Are you sure you want to run this command? ──────────────────┐
│ Yes │
└──────────────────────────────────────────────────────────────┘
INFO Running migrations.
2019_12_14_000001_create_personal_access_tokens_table ............................ 3ms FAIL
Illuminate\Database\QueryException
SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "personal_access_tokens" already exists (Connection: pgsql, SQL: create table "personal_access_tokens" ("id" uuid not null default uuid_generate_v4(), "tokenable_type" varchar(255) not null, "tokenable_id" uuid not null, "name" varchar(255) not null, "token" varchar(64) not null, "abilities" text null, "last_used_at" timestamp(0) without time zone null, "created_at" timestamp(0) without time zone null, "updated_at" timestamp(0) without time zone null))
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822
818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
819▕ );
820▕ }
821▕
➜ 822▕ throw new QueryException(
823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
824▕ );
825▕ }
826▕ }
+9 vendor frames
10 database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php:26
Illuminate\Support\Facades\Facade::__callStatic()
+25 vendor frames
36 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Any ideas as to why this is happening and how to fix it?
Thanks
y
Last edited: