Bug Report: Urgent Articles Not Display After Update Migrate

Urgent Articles Not Display After Update Migrate

Dear Support Team, I hope this message finds you well. I am writing to bring to your attention a critical issue I have encountered after updating to the latest version of our application

DH

Darwish Ahmad Herati

Reported

Dear Support Team,

I hope this message finds you well. I am writing to bring to your attention a critical issue I have encountered after updating to the latest version of our application and running the command ‘php artisan migrate --force’. Subsequently, the articles in the system are not displaying as expected.

Here are the details of the issue:

Description: After updating to the latest version and executing the migration command, the articles are no longer visible within the application. This unexpected behavior is causing a significant disruption to the user experience and needs immediate attention.

Steps to Reproduce:

Update the application to the latest version. (2.0.0-beta.23) Execute the command ‘php artisan migrate --force’. Access the articles section in the application. Expected Result: https://devopsfield.com/articles The articles should be displayed and accessible as usual after the update and migration.

Actual Result: The articles are not visible, and attempts to access them result in an error or an empty display.

Environment Details:

Application Version: (2.0.0-beta.23) PHP Version: 8.2 Database: Operating System: Attached Screenshot: [Attach a screenshot showing the issue/error encountered]

Additional Information: Include any other relevant information that might help in resolving the issue, such as recent changes made to the codebase or any error messages received during the migration process.

I appreciate your prompt attention to this matter as it is affecting the functionality of our application. If further information is required or if there’s a need for clarification, please do not hesitate to contact me.

Thank you for your assistance in resolving this issue.

Best regards,

Darwish [email protected]

  • MS

    Mian Saleem

    Answered

    Hello,

    Please edit database/migrations/2023_12_11_060441_create_article_article_category_table.php and then comment/remove the line number 16 - 18

    Schema::table('articles', function (Blueprint $table) {
        $table->foreignIdFor(ArticleCategory::class)->nullable()->constrained();
    });
    

    Then try to run the migration again.

    Thank you

  • DH

    Darwish Ahmad Herati

    Answered

    Thank you for your reply

  • MS

    Mian Saleem

    Answered

    Darwish Ahmad Herati Please ask question next time as bugs are strictly for the issue those can reproduce on live demos. Thank you