spatie / laravel-multitenancy

Make your Laravel app usable by multiple tenants
https://spatie.be/docs/laravel-multitenancy
MIT License
1.09k stars 154 forks source link

Tables not created when running migrations for landlord database #260

Closed zoxed closed 3 years ago

zoxed commented 3 years ago

when i try to do this php artisan migrate --path=database/migrations/landlord --database=landlord je reçois cette erreur : // PS C:\laragon\www\client> php artisan migrate --path=database/migrations/landlord --database=landlord


Dropped all tables successfully.

Illuminate\Database\QueryException

SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' (SQL: create table ` (idint unsigned not null auto_increment primary key,migrationvarchar(191) not null,batch` int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci' engine = InnoDB)

at C:\laragon\www\commerce\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671 667| // If an exception occurs when attempting to run a query, we'll format the error 668| // message to include the bindings with SQL, which will make this exception a 669| // lot more helpful to the developer instead of just the database's errors. 670| catch (Exception $e) {

671| throw new QueryException( 672| $query, $this->prepareBindings($bindings), $e 673| ); 674| } 675|

1 C:\laragon\www\client\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDO\Exception.php:18 Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''")

2 C:\laragon\www\client\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:84 Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))

PS C:\laragon\www\client> php artisan migrate --path=database/migrations/landlord --database=landlord


zoxed commented 3 years ago