migrations-generator
migrations-generator copied to clipboard
Laravel 5.7
Command "migrate:generate" is not defined.
Enviroment: Windows 10 Use: Homestead
$laravel new migrations
after: composer require --dev "xethron/migrations-generator:~1.3.0"
changed .env according runned homestead: vagrant up --provision
Took my db.sql I run: php artisan migrate:generate
I get in return:
Command "migrate:generate" is not defined.
Did you mean one of these? event:generate key:generate migrate migrate:fresh migrate:install migrate:refresh migrate:reset migrate:rollback migrate:status
Nevermind, after running the command: composer require --dev "xethron/migrations-generator:~1.3.0"
AGAIN!!!!!!!!!!
it worked????????? I not even checked what it did while i write this lol!
Ok........ i checked. My database/migrations does not list any new migrations*.php
`white@DESKTOP-P31GL3E MINGW64 /d/opleiding/projects/oscommercemigrations.local $ php artisan migrate:generate Using connection: mysql
Generating migrations for: action_recorder, address_book, address_format, administrators, banners, banners_history, categories, categories_description, configuration, configuration_group, countries, currencies, customers, cus tomers_basket, customers_basket_attributes, customers_info, geo_zones, languages, manufacturers, manufacturers_info, newsletters, orders, orders_products, orders_products_attributes, orders_products_download, orders_status, o rders_status_history, orders_total, oscom_app_paypal_log, products, products_attributes, products_attributes_download, products_description, products_images, products_images_groups, products_notifications, products_options, p roducts_options_values, products_options_values_to_products_options, products_to_categories, reviews, reviews_description, sec_directory_whitelist, sessions, specials, tax_class, tax_rates, testimonials, testimonials_descript ion, whos_online, zones, zones_to_geo_zones
Do you want to log these migrations in the migrations table? [Y/n] :
Y
Migration table created successfully.
Next Batch Number is: 1. We recommend using Batch Number 0 so that it becomes the "first" migration [Default: 0] :
`
lol sighhhhhhhhh
i just typed 0 and it worked. Forgive me my stupidity LOL
Let this be a lesson for the rest!
This is probably the best issue on GitHub
LOL
You probably want this too:
composer require --dev "xethron/migrations-generator"
So you get 2.x instead of 1.3.