Laravel user schema update
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Laravel user schema update
I'm trying to modify the user schema and change the existing column
but when I run the command "php artisan aimeos:setup" I get the message:
Has anyone had the same issue or can suggest what's wrong?
Here is my file
Similar works for other tables but not for "users"
I have aimeos/aimeos-laravel 2021.10.6
but when I run the command "php artisan aimeos:setup" I get the message:
Code: Select all
Using schema from customer.php
There is no table with name 'users' in the schema
Here is my file
Code: Select all
return [
'table' => [
'users' => function (\Doctrine\DBAL\Schema\Schema $schema) {
$table = $schema->getTable('users');
$table->changeColumn('name', ['length' => 255, 'default' => '']);
return $schema;
},
],
];
I have aimeos/aimeos-laravel 2021.10.6
Re: Laravel user schema update
Guess, the users table is available, isn't it?
Do you have different databases for all users* tables and the rest?
Do you have different databases for all users* tables and the rest?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Laravel user schema update
users table is present and the changes work from aimeos/ai-laravel, but when I created the same customer.php file in my extension and want to change some columns, when I run the setup command, I get this result
Re: Laravel user schema update
Add "ai-laravel" into the "depends" section of the manifest.php in your own extension to get the dependencies right.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Laravel user schema update
thanks a lot, it seems the list of dependencies was generated automatically and I completely forgot about it