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

Laravel 5.7 #181

Open
osc2nuke opened this issue Feb 22, 2019 · 6 comments
Open

Laravel 5.7 #181

osc2nuke opened this issue Feb 22, 2019 · 6 comments

Comments

@osc2nuke
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

lol sighhhhhhhhh

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

Let this be a lesson for the rest!

@danilopolani
Copy link

This is probably the best issue on GitHub

@blogui91
Copy link

LOL

@dmyers
Copy link

dmyers commented Mar 6, 2019

You probably want this too:

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

So you get 2.x instead of 1.3.

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

No branches or pull requests

4 participants