Git Product home page Git Product logo

Comments (11)

aimeos avatar aimeos commented on May 21, 2024

The Laravel database migration is missing in your setup. Did you forgot to execute php artisan vendor:publish and php artisan migrate first?

from aimeos-laravel.

dronowar avatar dronowar commented on May 21, 2024

yes, but only 2 table was in /database/migrations/ after install package
$ php artisan migrate Migration table created successfully. Migrated: 2014_10_12_000000_create_users_table Migrated: 2014_10_12_100000_create_password_resets_table

from aimeos-laravel.

aimeos avatar aimeos commented on May 21, 2024

Did you add the Aimeos service provider class in the config/app.php first, so php artisan vendor:publish will copy the Aimeos migrations to ./database/migrations?

from aimeos-laravel.

dronowar avatar dronowar commented on May 21, 2024

my mistake, i did migration before vendor:publish

from aimeos-laravel.

pagliaj avatar pagliaj commented on May 21, 2024

Laravel Framework version 5.2.43

Doing a fresh aimeos install - its failing on the command:
php artisan aimeos:setup --option=setup/default/demo:1
And also when I try to create the admin.

Checking table "mshop_product_type": OK
Checking table "mshop_service_list_type": OK
Checking table "mshop_service_type": OK
Checking table "mshop_text_list_type": OK
Checking table "mshop_text_type": OK
Adding default code data for site "default"
Checking "customer/group" codes OK
Checking "product/stock/warehouse" codes OK
Processing product demo data added
Processing catalog demo data added
Processing coupon demo data added
Processing customer demo data

[Aimeos\MW\DB\Exception]
Executing statement "
SELECT DISTINCT lvu."id" AS "customer.id",
lvu."label" AS "customer.label", lvu."name" as "customer.code",
lvu."company" AS "customer.company", lvu."vatid" AS "customer.vatid",
lvu."salutation" AS "customer.salutation", lvu."title" AS "customer.title",
...
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lvu.label' in 'field list'

Thanks for any help.

from aimeos-laravel.

aimeos avatar aimeos commented on May 21, 2024

Please have a look into your database. Is the users table there? How does it look like?

from aimeos-laravel.

pagliaj avatar pagliaj commented on May 21, 2024

I missed that. There is no users table. It did not get created?

from aimeos-laravel.

aimeos avatar aimeos commented on May 21, 2024

OK, might be a bug in the most recent Laravel version because the users table is created by Laravel (normally). Can you check with the Laravel community why it's not created any more?

from aimeos-laravel.

pagliaj avatar pagliaj commented on May 21, 2024

Aimeos thanks for the help. It may be something I did. I am doing a fresh install of Laravel and Aimeos this morning (so I don't waste anyone's time).

from aimeos-laravel.

pagliaj avatar pagliaj commented on May 21, 2024

Update, I was installing Aimeos into an existing Laravel site. The user table did exist already and it has many more fields than the "Aimeos clean install user table". It looks like the "php artisan aimeos:account" command fails with custom user tables? My clean Aimeos install worked.

from aimeos-laravel.

aimeos avatar aimeos commented on May 21, 2024

It will fail if there are columns that don't allow NULL values because the aimeos:account command doesn't know that they exist and what needs to be inserted

from aimeos-laravel.

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.