cakephp-realworld-example-app icon indicating copy to clipboard operation
cakephp-realworld-example-app copied to clipboard

Followed the manual, got stuck when migrating the tables.

Open nuzulfikrie opened this issue 5 years ago • 0 comments

Hi All,

I followed the instructions in the docs.

When I entered migrations command into the terminal. bin\cake migrations migrate

I encountered errors.

Environments : Apache 2.4 on XAMPP , PHP 7.3.9 , how to rectify this issue?

using migration path E:\xampp\htdocs\cakephp-realworld-example-app\config\Migrations using seed path E:\xampp\htdocs\cakephp-realworld-example-app\config\Seeds Exception: There was a problem creating the schema table: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'end_time' in [E:\xampp\htdocs\cakephp-realworld-example-app\vendor\robmorgan\phinx\src\Phinx\Db\Adapter\PdoAdapter.php, line 528] 2019-11-30 19:55:41 Error: [InvalidArgumentException] There was a problem creating the schema table: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'end_time' in E:\xampp\htdocs\cakephp-realworld-example-app\vendor\robmorgan\phinx\src\Phinx\Db\Adapter\PdoAdapter.php on line 528

nuzulfikrie avatar Dec 01 '19 03:12 nuzulfikrie