Giter VIP home page Giter VIP logo

Comments (7)

etwasch avatar etwasch commented on August 22, 2024 1

I've the same problem with default Laravel 5.3 migration

Just add the column to the table and it's fixed:
$table->tinyInteger('reserved')->unsigned();

from laravel-async-queue.

TUNER88 avatar TUNER88 commented on August 22, 2024
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'reserved' in 'field list' (SQL: insert into `jobs` (`queue`, `payload`, `attempts`, `reserved`, `reserved_at`, `available_at`, `created_at`) values (default, {"job":"Illuminate\\Queue\\CallQueuedHandler@call","data":{"commandName":"Illuminate\\Mail\\SendQueuedMailable","command":"O:34:\"Illuminate\\Mail\\SendQueuedMailable\":1:{s:11:\"\u0000*\u0000mailable\";O:33:\"App\\Mail\\EmailVerificationRequest\":17:{s:4:\"user\";O:45:\"Illuminate\\Contracts\\Database\\ModelIdentifier\":2:{s:5:\"class\";s:8:\"App\\User\";s:2:\"id\";i:38;}s:5:\"token\";i:0;s:7:\"\u0000*\u0000from\";a:0:{}s:5:\"\u0000*\u0000to\";a:1:{i:0;a:2:{s:7:\"address\";s:25:\"[email protected]\";s:4:\"name\";N;}}s:5:\"\u0000*\u0000cc\";a:0:{}s:6:\"\u0000*\u0000bcc\";a:0:{}s:10:\"\u0000*\u0000replyTo\";a:0:{}s:10:\"\u0000*\u0000subject\";N;s:7:\"\u0000*\u0000view\";N;s:11:\"\u0000*\u0000textView\";N;s:11:\"\u0000*\u0000viewData\";a:0:{}s:14:\"\u0000*\u0000attachments\";a:0:{}s:17:\"\u0000*\u0000rawAttachments\";a:0:{}s:12:\"\u0000*\u0000callbacks\";a:0:{}s:10:\"connection\";N;s:5:\"queue\";N;s:5:\"delay\";N;}}"}}, 0, 1, 1481639050, 1481639050, 1481639050))

I've the same problem with default Laravel 5.3 migration

from laravel-async-queue.

TUNER88 avatar TUNER88 commented on August 22, 2024

@etwasch thx for your snippet, but it's only a workaround.
The problem should be fixed in the package, since the framework and package does not use this field any more, it should be removed from the query.

from laravel-async-queue.

etwasch avatar etwasch commented on August 22, 2024

@TUNER88 wouldn't this break backwards compatibility?

from laravel-async-queue.

TUNER88 avatar TUNER88 commented on August 22, 2024

@etwasch looks like it already incompatible with older framework versions, since the is no field named reserved_at .
The reserved field was transformed form boolean to timestampfield in Laravel 5.3.

You are totally right, applications based on older framework versions could use an older version of this package.

from laravel-async-queue.

barryvdh avatar barryvdh commented on August 22, 2024

We should just use the Laravel migrations instead of our own.

from laravel-async-queue.

nelsonfncosta avatar nelsonfncosta commented on August 22, 2024

Hi, readme says for Laravel 5.3 use the 0.5 branch, but still the problem exists.
Should I stick with Laravel migrations solution, as proposed by @barryvdh ?

from laravel-async-queue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.