codestudiohq / laravel-totem

Manage Your Laravel Schedule From A Web Dashboard
MIT License
1.8k stars 224 forks source link

Column not found: 1054 Unknown column 'run_in_background' #323

Closed TelMercher closed 2 years ago

TelMercher commented 2 years ago

Hi, when i try to save a task i have this error: Column not found: 1054 Unknown column 'run_in_background' in 'field list' (SQL: insert into totem_tasks [...])

Did anyone have the same error?

qschmick commented 2 years ago

@TelMercher

  1. Which version of Totem are you running?
  2. Have you run php artisan migrate to ensure the DB is up to date?
TelMercher commented 2 years ago

Ver. 8.4. Yes, i did. I have checked in migrations and the column is not there.

qschmick commented 2 years ago

@TelMercher Please verify that this migration has run in you system: https://github.com/codestudiohq/laravel-totem/blob/8.0/database/migrations/2020_12_10_120000_alter_tasks_table_add_run_in_background_support.php

This has existed for over a year.

TelMercher commented 2 years ago

I have checked but that migration is not present. I don't understand what happened.

qschmick commented 2 years ago

@TelMercher Sounds like the migration just needs to be run. If you run php artisan migrate does it state that there are no migrations to run? If that migration doesn't exist in your migrations table and it isn't running it sounds like there might be a problem with your setup.

  1. Do you have vendor/ committed or is it created/installed on deployment?
  2. What about in your local environment?
  3. Can you rebuild locally and it works or same issue?
  4. Have you added added/changed the table prefix value? If the table was originally created with a different prefix that could be an issue
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.