migrations-generator icon indicating copy to clipboard operation
migrations-generator copied to clipboard

Laravel 5.7

Open osc2nuke opened this issue 5 years ago • 6 comments

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

osc2nuke avatar Feb 22 '19 23:02 osc2nuke

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!

osc2nuke avatar Feb 22 '19 23:02 osc2nuke

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] :

`

osc2nuke avatar Feb 22 '19 23:02 osc2nuke

lol sighhhhhhhhh

i just typed 0 and it worked. Forgive me my stupidity LOL

Let this be a lesson for the rest!

osc2nuke avatar Feb 22 '19 23:02 osc2nuke

This is probably the best issue on GitHub

danilopolani avatar Feb 27 '19 08:02 danilopolani

LOL

blogui91 avatar Feb 28 '19 03:02 blogui91

You probably want this too:

composer require --dev "xethron/migrations-generator"

So you get 2.x instead of 1.3.

dmyers avatar Mar 06 '19 21:03 dmyers