【问题标题】:Error when trying to migrate my databases尝试迁移我的数据库时出错
【发布时间】:2014-09-15 14:36:58
【问题描述】:

这是我不断收到的错误:

 desk git:(message) ✗ php artisan migrate:refresh

 [Illuminate\Database\QueryException]
 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'migration' in 'order
 clause' (SQL: select * from `migrations` where `batch` is null order by 
 'migration` desc)

我该如何解决这个问题?

【问题讨论】:

  • 向迁移表中添加一个名为migration的列? :D
  • 错误是说实际问题。检查migrations

标签: php laravel command database-migration


【解决方案1】:

手动删除数据库中的所有表。您的一个迁移可能以某种方式更改了迁移表并导致此错误。删除它们后,您可以再次:

php artisan migrate

【讨论】:

    猜你喜欢
    • 2015-10-14
    • 2019-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-04
    • 1970-01-01
    • 1970-01-01
    • 2012-05-24
    相关资源
    最近更新 更多