Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error, migrations not working #202

Closed
1 of 3 tasks
CodeBlastr opened this issue Mar 1, 2016 · 6 comments
Closed
1 of 3 tasks

Fatal error, migrations not working #202

CodeBlastr opened this issue Mar 1, 2016 · 6 comments
Labels
Milestone

Comments

@CodeBlastr
Copy link

This is a (multiple allowed):

  • bug
  • enhancement
  • feature-discussion (RFC)
  • CakePHP Version: 3.2
  • Migrations plugin version: a8f3eb8
  • Bake plugin version (if relevant): 78c53a1
  • Database server (MySQL, SQLite, Postgres): MySql
  • PHP Version: 5.5
  • Platform / OS: Nginx / Mac

What you did

trying to run pretty much any migrations command from shell (specifically "migrate" or "status" or "create") and tried the -p flag.

Expected Behavior

That a migration would create the users table, or create a user migration file if I create my own users table.

Actual Behavior

Nothing happens, I just get this message : 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 /Applications/nginxstack-1.9.10-0/apps/[domain name]/htdocs/vendor/cakephp/migrations/src/CakeAdapter.php on line 670

@thiagosrios
Copy link

The same thing is happening to me.

  • CakePHP Version: 3.1.11.
  • Migrations plugin version: 1.5.6.
  • Bake plugin version: 1.1.
  • Database server (MySQL, SQLite, Postgres): Postgres
  • PHP Version: 5.4.31
  • Platform / OS: Apache / Windows 7 (Work enviroment)

@AnderWeb
Copy link

AnderWeb commented Mar 1, 2016

Sorry, I made the report on the wrong repo.

As I said in my duplicate report, the issue is cause of the new Phinx interface method in this commit

@HavokInspiration
Copy link
Member

PR #204 opened to address this issue.

@HavokInspiration
Copy link
Member

A new release has been tagged.
If you do a composer update, this should upgrade the plugin to the new release and rollback phinx version to 0.5.1 and everything should be working again.

@AnderWeb
Copy link

AnderWeb commented Mar 2, 2016

Any way we can track when the Phinx 0.5.2 will be supported? They included some new things like support for creating full-text indexes that are quite welcome.

@HavokInspiration
Copy link
Member

A release will be made when support for phinx 0.5.2 will be added.
You can be notified of new releases (and opened Pull Request) by "watching" the repository.

@deizel deizel mentioned this issue Mar 4, 2016
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants