Skip to content

Phalcon Migrations run #15400

Answered by Jeckerson
zivox asked this question in Q&A
Apr 13, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello

Check this configuration example:
https://github.com/phalcon/migrations#create-configuration-file
It contains migrationsDir where you can specify relative or absolute path of your migrations. Also, try to execute migrations from your root of project and not inside vendor directory.

Project structure example:

app/
db/migrations/
public/
migrations.php

And commands examples:

vendor/bin/phalcon-migrations generate --config=migrations.php
ls -la db/migrations <--- here will be your first generated migrations

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zivox
Comment options

@zivox
Comment options

Answer selected by zivox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants