Users Table: Changing Table Schema
Posted: 10 Oct 2018, 17:05
Laravel: 5.6
Aimeos: 2018.07
PHP: 7.1.18
Hi,
I want to change unique index on email field in users table. So, I created a Schema file inside my extension. The name of the file is "customer.php" and it has the following lines of code:
So, when I execute command. I get following error:
Thanks!
Aimeos: 2018.07
PHP: 7.1.18
Hi,
I want to change unique index on email field in users table. So, I created a Schema file inside my extension. The name of the file is "customer.php" and it has the following lines of code:
Code: Select all
<?php
return array(
'table' => array(
'users' => function (\Doctrine\DBAL\Schema\Schema $schema) {
$table = $schema->getTable('users');
$table->dropIndex('unq_lvusr_email');
return $schema;
}
)
);
Code: Select all
php artisan aimeos:setup
So, what is going here? I have been doing the same thing for other tables.In SchemaException.php line 46:
There is no table with name 'public.users' in the schema.
Thanks!