Closed rayoplateado closed 8 years ago
PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/api/vendor/davedevelopment/phpmig/src/Phpmig/Console/Command/CheckCommand.php on line 44
Would suggest phpmig can't fetch the run migrations from the provider, which provider are you using?
Hi dave, thank you for your fast response!
I'm working with mysql. It's weird because if i try to do a migration I get a mysql error about a duplicate table (from the first migration file)
$ bin/phpmig migrate -t 20160915122009
PHP Warning: array_map(): Argument #2 should be an array in /var/www/api/vendor/davedevelopment/phpmig/src/Phpmig/Adapter/Illuminate/Database.php on line 62
PHP Warning: sort() expects parameter 1 to be array, null given in /var/www/api/vendor/davedevelopment/phpmig/src/Phpmig/Console/Command/MigrateCommand.php on line 62
PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/api/vendor/davedevelopment/phpmig/src/Phpmig/Console/Command/MigrateCommand.php on line 110
== 20150101160236 CreateDBSeedsTable migrating
[Illuminate\Database\QueryException]
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'db_seeds' a
lready exists (SQL: create table `db_seeds` (`version` varchar(255) not nul
l) default character set utf8 collate utf8_general_ci engine = MYISAM)
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'db_seeds' a
lready exists
[PDOException]
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'db_seeds' a
lready exists
migrate [-s|--set SET] [-b|--bootstrap BOOTSTRAP] [-t|--target TARGET]
Ah, if you are using the Illuminate adapter then it could be to do with #115, fixed yesterday.
Thank you dave, gonna check this out right now!
Fixed and working perfectly. Thank you, dave!!
Hi. I have implemented phpmig in my project long time ago.
Everything goes fine, but today, i've tried to migrate a new database migration to my server, in local it works pretty well, but in my RC server i've found ALL the migrations seems to be down in 'phpmig check':
But in fact, migrations are on my database except the last one (the new one). What's happening here? Can you help me to understand?
Thanks!!