kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

kaliop:migration:generate generates no files #144

Closed xrow closed 6 years ago

xrow commented 6 years ago

Hi,

I am using the latest version. I would have bet this worked before. Please see the output.

[ec2-user@localhost magazin.x.com]$ php app/console kaliop:migration:generate --format=yml AppBundle
Migrations directory /var/www/sites/magazin.x.com/vendor/ezsystems/ezplatform-ee-demo/src/AppBundle/MigrationVersions does not exist. I will create it now....
Migrations directory /var/www/sites/magazin.x.com/vendor/ezsystems/ezplatform-ee-demo/src/AppBundle/MigrationVersions has been created
Generated new migration file: /var/www/sites/magazin.x.com/vendor/ezsystems/ezplatform-ee-demo/src/AppBundle/MigrationVersions/20171109161915_placeholder.yml
[ec2-user@localhost magazin.x.com]$ ls -lisa src/AppBundle
total 4
  5237804 0 drwxrwxrwx 2 ec2-user apache  27 Oct 20 16:22 .
101943071 0 drwxrwxrwx 3 ec2-user apache  39 Oct 20 16:22 ..
  5237805 4 -rw-rw-rw- 1 ec2-user apache 113 Oct 20 16:22 AppBundle.php
[ec2-user@localhost magazin.x.com]$ ls -lisa src
total 4
101943071 0 drwxrwxrwx  3 ec2-user apache   39 Oct 20 16:22 .
102457953 4 drwxrwxrwx 11 ec2-user apache 4096 Nov  9 16:11 ..
  5237804 0 drwxrwxrwx  2 ec2-user apache   27 Oct 20 16:22 AppBundle
101943072 0 -rw-rw-rw-  1 ec2-user apache    0 Oct 20 16:22 .gitkeep
xrow commented 6 years ago

Finally I found my file :-). I was looking at the wrong path.

[ec2-user@localhost magazin.x.com]$ find . -name  20171109161915_placeholder.yml     
./vendor/ezsystems/ezplatform-ee-demo/src/AppBundle/MigrationVersions/20171109161915_placeholder.yml

Now the big question is: Why did it get placed in vendor/ezsystems/ezplatform-ee-demo/src and not in src/?

The answer might be: Because it sees 2 AppBundles one in src/ and one in vendor/ezsystems/ezplatform-ee-demo/src. Unfortunatelly it sees the later first. I will let eZ create a bug report about it. Please close this one as invalid. I post the URL to the ticket later.

xrow commented 6 years ago

https://support.ez.no/ticket/view/6460

Please close... Sorry...

gggeek commented 6 years ago

Indeed it seems that you have 2 bundles with the same name... I am not even sure if Symfony would work perfectly in that scenario anyway, so I would recommend to fix it 1st :-)