Maybe you can fix it with console 'composer dump-autoload'
Migrations Not Working Correctly on Live Server
I made a migrations file that adds foreign keys to some columns that did not have them in my database. Running php artisan migrate correctly adds them on my local development server, but does not work properly on my production server.
Here are the migrations as shown with ls on the live server :
''' 2014_01_17_104048_create_youtube_access_token_table.php 2014_11_01_152334_create_uploaded_files_table.php 2014_12_27_220936_recruiters_db_2.php 2015_03_09_203946_create_ratings_table.php 2015_03_09_205933_create_scorings_table.php 2015_05_18_225117_create_applications_table.php 2015_05_18_225629_create_skillstests_table.php 2015_05_18_225913_create_SkillsTestQuestions_table.php 2015_05_18_230208_create_QuestionsParagraph_table.php 2015_05_18_230400create_QuestionsFileUpload_table.php 201505_18_230530create_QuestionsMultipleChoice_table.php 201505_18_230711_create_QuestionsText_table.php 2015_05_19_053828_create_QuestionsYoutube_table.php 2015_05_19_053956_create_SkillsTestSubmissions_table.php 2015_05_19_054314_create_SkillsTestAnswers_table.php 2015_05_19_054638_create_AnswersParagraph_table.php 2015_05_19_055152_create_AnswersMultipleChoice_table.php 2015_05_19_055435_create_AnswersText_table.php 2015_05_19_055553_create_AnswersYoutube_table.php 2015_05_19_060049_add_skills_test_submission_id_to_scorings_table.php 2015_05_19_060308_add_unique_key_on_email_to_applicants_table.php 2015_07_29_010056_SkillsTestRequests.php 2015_07_30192523_create_password_resets_table.php 201508_01_154748_create_AnswersFileUpload_table.php 2015_08_02_121120create_social_media_links_table.php 201508_07_090153_create_user_action_log_entries_table.php 2015_10_08_105153_create_recruiter_added_files_applicant.php 2015_12_01_183558_create_jobs_table.php 2016_01_09_060049_add_thank_you_sent_to_skillstestsubmissions_table.php 2016_01_23_060049_add_locationRequestActive_to_skillstests_table.php 2016_01_23_060049_add_salaryRequestActive_to_skillstests_table.php 2016_01_24_060049_add_locationAndAddress_to_skillstestsubmissions_table.php 2016_01_24_060049_add_salary_to_skillstestsubmissions_table.php 2016_01_30_060049_add_time_to_skillstestsubmissions_table.php 2016_05_27_121120create_tags_table.php 201605_28_011120create_applicants_tags_table.php 201608_17_105311_create_password_reset_table.php 2016_08_20144506_add_active_column_to_users_table.php 201609_08_064859_add_applicant_id_to_scorings_table.php 2016_09_09_114657_add_user_id_to_job_descriptions_table.php 2016_09_09_122602_add_user_id_to_applications_table.php 2016_09_13_112309_create_youtube_tokens_table.php 2016_09_16_070910add_scored_column_to_SkillsTestSubmissions_table.php 201609_23_101928_create_training_questions_table.php 2016_09_26_132525_create_practice_ratings_table.php 2016_09_29_061502_create_recruiter_reviews_table.php 2017_03_09_102851_create_interviews_table.php 2017_03_09_123429_create_interview_confirmations_table.php 2017_03_18_010242_add_archived_column_to_interviews_table.php 2017_04_12_140117_add_secondary_notification_column_to_skills_tests_submissions.php 2017_05_31_150319_add_spell_checked_column_to_paragraph_answers.php 2017_06_06_035252_create_failed_jobs_table.php 2017_08_25_150319_modify_applicant_id_on_scorings.php 2017_08_25_150319_modify_application_id_on_social_media_links.php 2017_08_26_011120_make_missing_keys1.php '''
Here is my migrations database: ''' MIGRATION BATCH 2014_01_17_104048_create_youtube_access_token_table 1 2014_11_01_152334_create_uploaded_files_table 1 2014_12_27_220936_recruiters_db_2 1 2015_03_09_203946_create_ratings_table 1 2015_03_09_205933_create_scorings_table 1 2015_05_18_225117_create_applications_table 1 2015_05_18_225629_create_skillstests_table 1 2015_05_18_225913_create_SkillsTestQuestions_table 1 2015_05_18_230208_create_QuestionsParagraph_table 1 2015_05_18_230400create_QuestionsFileUpload_table 1 201505_18_230530create_QuestionsMultipleChoice_table 1 201505_18_230711_create_QuestionsText_table 1 2015_05_19_053828_create_QuestionsYoutube_table 1 2015_05_19_053956_create_SkillsTestSubmissions_table 1 2015_05_19_054314_create_SkillsTestAnswers_table 1 2015_05_19_054638_create_AnswersParagraph_table 1 2015_05_19_055152_create_AnswersMultipleChoice_table 1 2015_05_19_055435_create_AnswersText_table 1 2015_05_19_055553_create_AnswersYoutube_table 1 2015_05_19_060049_add_skills_test_submission_id_to_scorings_table 1 2015_05_19_060308_add_unique_key_on_email_to_applicants_table 1 2015_07_29_010056_SkillsTestRequests 1 2015_07_30192523_password_resets 1 201508_01_154748_create_AnswersFileUpload_table 1 2015_08_02_121120create_social_media_links_table 1 201508_07_090153_create_user_action_log_entries_table 2 2015_07_30192523_create_password_resets_table 3 2015_10_08_105153_create_recruiter_added_files_applicant 4 2015_1201_183558_create_jobs_table 5 2016_01_09_060049_add_thank_you_sent_to_skillstestsubmissions_table 6 2016_01_23_060049_add_salaryRequestActive_to_skillstests_table 7 2016_01_24_060049_add_salary_to_skillstestsubmissions_table 7 2016_01_23_060049_add_locationRequestActive_to_skillstests_table 8 2016_01_24_060049_add_locationAndAddress_to_skillstestsubmissions_table 8 2016_01_30_060049_add_time_to_skillstestsubmissions_table 9 2016_05_27_121120create_tags_table 10 201605_28_011120create_applicants_tags_table 10 201608_17_105311_create_password_reset_table 11 2016_08_20144506_add_active_column_to_users_table 11 201609_08_064859_add_applicant_id_to_scorings_table 12 2016_09_09_114657_add_user_id_to_job_descriptions_table 13 2016_09_09_122602_add_user_id_to_applications_table 13 2016_09_13_112309_create_youtube_tokens_table 14 2016_09_16_070910add_scored_column_to_SkillsTestSubmissions_table 15 201609_23_101928_create_training_questions_table 16 2016_09_26_132525_create_practice_ratings_table 16 2016_09_29_061502_create_recruiter_reviews_table 17 2017_03_09_102851_create_interviews_table 18 2017_03_09_123429_create_interview_confirmations_table 18 2017_03_18_010242_add_archived_column_to_interviews_table 19 2017_04_12_140117_add_secondary_notification_column_to_skills_tests_submissions 20 2017_05_31_150319_add_spell_checked_column_to_paragraph_answers 21 '''
After I run "php artisan migrate", I get this output:
''' Migrated: 2017_08_25_150319_modify_applicant_id_on_scorings Migrated: 2017_08_25_150319_modify_application_id_on_social_media_links Migrated: 2017_08_26_011120_make_missing_keys1 ''' However, none of those tables show up in the migrations database table, nor do they actually change the database.
How can I get these migrations to actually run or spot the bug that is causing them to fail silently?
Please note that if I run "php artisan migrate:rollback" twice, I get an error message:
[Symfony\Component\Debug\Exception\FatalErrorException] Class 'CreateApplicantKeywordTable' not found
Please note I deleted a old unneeded migration table "CreateApplicantKeywordTable", but this table is not in my migrations database either. I can't find it anywhere in the migrations database table or in the code files... so I don't know why that would throw an error... I think it may have something to do with the problem above?
Please or to participate in this conversation.