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

[BUG] Cannot see existing migrations #110

Closed
rusAnthrax opened this issue Apr 21, 2021 · 3 comments
Closed

[BUG] Cannot see existing migrations #110

rusAnthrax opened this issue Apr 21, 2021 · 3 comments
Labels
question Further information is requested

Comments

@rusAnthrax
Copy link

phalcon-migratgions v 2.1.6

bash-5.1# pwd
/var/www/html/app

bash-5.1# ../vendor/bin/phalcon-migrations list
Phalcon Migrations
  Info: Migrations were not found at /var/www/html/app/migrations  
                                                                   
bash-5.1# ls -lah ./migrations/
total 8K     
drwxrwxr-x    2 1001     1001        4.0K Apr 21 12:20 .
drwxr-xr-x   11 1001     1001        4.0K Apr 19 15:02 ..
-rw-rw-r--    1 1001     1001           0 Apr 19 15:02 .gitkeep

bash-5.1# ../vendor/bin/phalcon-migrations generate --table=test
Phalcon Migrations
  Success: Version 1.0.0 was successfully generated  

bash-5.1# ls -lah ./migrations/
total 12K    
drwxrwxr-x    3 1001     1001        4.0K Apr 21 14:10 .
drwxr-xr-x   11 1001     1001        4.0K Apr 19 15:02 ..
-rw-rw-r--    1 1001     1001           0 Apr 19 15:02 .gitkeep
drwxrwxr-x    2 root     root        4.0K Apr 21 14:10 1.0.0

bash-5.1# ls -lah ./migrations/1.0.0/
total 12K    
drwxrwxr-x    2 root     root        4.0K Apr 21 14:10 .
drwxrwxr-x    3 1001     1001        4.0K Apr 21 14:10 ..
-rw-rw-r--    1 root     root         676 Apr 21 14:10 test.php

bash-5.1# ../vendor/bin/phalcon-migrations list
Phalcon Migrations
  Info: Migrations were not found at /var/www/html/app/migrations  
@Jeckerson
Copy link
Member

Jeckerson commented Apr 21, 2021

Hello. Try to use with configuration file - https://github.com/phalcon/migrations#create-configuration-file

vendor/bin/phalcon-migrations list --config=migrations.php

@Jeckerson
Copy link
Member

Closing, feel free to reopen.

@Jeckerson Jeckerson added the question Further information is requested label Aug 8, 2021
@createthis
Copy link

I wonder if this was related to #144 because I had the same thing happen when I had migrationsTsBased => true set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants