It seems that old migrations (Phalcon v3.4.x) are not being able to run on Phalcon v4.x . Is there a way to do that without changing a lot of code?
What I got when trying ot apply migrations:
[email protected]:/var/www/html/shop_products# app/common/library/vendor/bin/phalcon-migrations migration run --migrations=app/migrations/ --config=../../../../etc/shop/products.yml
Phalcon Migrations
Fatal error: Uncaught TypeError: Argument 3 passed to Phalcon\Db\Index::__construct() must be of the type string, null given in /var/www/html/shop_products/app/migrations/1.0.0/rate_images.php:80
Stack trace:
#0 /var/www/html/shop_products/app/migrations/1.0.0/rate_images.php(80): Phalcon\Db\Index->__construct('rate_images_pro...', Array, NULL)
#1 /var/www/html/shop_products/app/common/library/vendor/phalcon/migrations/src/Mvc/Model/Migration.php(514): RateImagesMigration_100->morph()
#2 /var/www/html/shop_products/app/common/library/vendor/phalcon/migrations/src/Migrations.php(360): Phalcon\Migrations\Mvc\Model\Migration::migrate('rate_images', Object(Phalcon\Migrations\Version\IncrementalItem), Object(Phalcon\Migrations\Version\IncrementalItem))
#3 /var/www/html/shop_products/app/common/library/vendor/phalcon/migrations/src/Console/Commands/Builtin/Migration.php(158): Phalcon\Migrations\Migrations::run(Array)
#4 /var/www/html/shop_products/app/common/library/vendor/phalcon/migrations/src/Console/Script.php(107): Phalcon in /var/www/html/shop_products/app/migrations/1.0.0/rate_images.php on line 80