I am trying to migrate create table fields using
yii migrate/create create_post_table --fields="title:string,body:text"
but throws
Error: Unknown option --fields
what should I do? please help.
fields option is available from Yii 2.0.7. Update your Yii 2 framework.
Related
I have this Error when run pipeline on bitbucket
./yii migrate --interactive=0
Yii Migration Tool (based on Yii v2.0.33-dev)
Error: syntax error, unexpected ';'
2020-03-04T05:30:03.930868636Z stdout P Creating migration history table "migration"...
From where this Error come and how to resolve this
This the version issue in yii2. 2.0.32 is stable and 2.0.33 is not stable. So this issue occure
I'm new at Laravel, I got this error when I tried to migrate a real website to XAMPP sevrer
The problem occured after I executed the following commands in the command line:
composer install
php artisan key:generate
php artisan migrate
In Connection.php line 664:
SQLSTATE[42S02]: Base table or view not found: 1146 Table '<mydatabase>.setting' doesn't exist (SQL: select * from setting limit 1)
In Connection.php line 326:
SQLSTATE[42S02]: Base table or view not found: 1146 Table '<mydatabase>.setting' doesn't exist
Now, I got the exported database from live website. Everything seems to work fine,thank you anyway mannnn
I am using Yii2 and after updating the framework (composer update), the following error appeared:
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable
in vendor/markbaker\complex\classes\src\operations\add.php on line 18
Does anyone know what this is about?
The vendor dependency markbaker/complex that throws this syntax error simply requires php 5.6
you need to either update your environment or try an older version of that library
I was following the default documentation and Laracst tutorials to build an application. Here is the source, https://github.com/nasirkhan/laravel-5-starter-application
Installing a new instance form this source shows the following errors, can anyone please assist me to find the issue here?
I run the following commands,
git pull git#github.com:nasirkhan/laravel-5-starter-application.git
composer install then i got the following error.
after getting the error i tried to run php artisan migrate but the error was not resolved.
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-5-starter.permissions' doesn't exist (SQL: select * from `permissions`)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-5-starter.permissions' doesn't exist
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
found the solution. Updated the repo, thanks for engaging.
Run php artisan migrate from the console. There seems to be a permissions table which is queried but doesn't exist yet.
In the file 2015_09_10_193651_create_roles_tables.php the table gets created, as you can see here.
I pretty much use Migrations every time I work with CakePHP and I never encounter any issues.
This time, however, I am having an issue trying to execute the following command
bin/cake Migrations migrate
I had created the file using
bin/cake bake migrations CreateTaxes state:string[5] ...
The file created successfully, but when I run the command to migrate, I am getting the following error:
PHP Fatal error: Class Migrations\CakeAdapter contains 1 abstract method
and must therefore be declared abstract or implement the remaining methods
(Phinx\Db\Adapter\AdapterInterface::getVersionLog) in
/var/www/taxes/website/vendor/cakephp/migrations/src/CakeAdapter.php
on line 670
I cant figure out why it is throwing this error and not allowing the command to finalize. I have looked at both CakeAdapter.php and AdapterInterface.php for Phinx.
This was actually a bug that has now been fixed. https://github.com/cakephp/migrations/issues/202