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 6.0 Compatibility #191

Open
nasatome opened this issue Sep 5, 2019 · 27 comments
Open

Laravel 6.0 Compatibility #191

nasatome opened this issue Sep 5, 2019 · 27 comments

Comments

@nasatome
Copy link

nasatome commented Sep 5, 2019

Laravel 6.0 Compatibility ?

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

Using version ^2.0 for xethron/migrations-generator
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - xethron/migrations-generator v2.0.0 requires way/generators dev-feature/laravel-five-stable -> no matching package found.
    - Conclusion: remove laravel/framework v6.0.0
    - Conclusion: don't install laravel/framework v6.0.0
    - xethron/migrations-generator v2.0.1 requires xethron/laravel-4-generators ~3.1.0 -> satisfiable by xethron/laravel-4-generators[3.1.0, 3.1.1].
    - xethron/migrations-generator v2.0.2 requires xethron/laravel-4-generators ~3.1.0 -> satisfiable by xethron/laravel-4-generators[3.1.0, 3.1.1].
@jasperf
Copy link

jasperf commented Sep 11, 2019

Perhaps https://github.com/laracasts/Laravel-5-Generators-Extended will be a good alternative.

@blindiceyes
Copy link

will be waiting for update. thanks for this

@jdamps
Copy link

jdamps commented Sep 11, 2019

have the same problem today,
I just have installed laravel in supported version and now it is working.
composer create-project laravel/laravel="5.6.*" Project_Name

@MammutAlex
Copy link

Perhaps https://github.com/laracasts/Laravel-5-Generators-Extended will be a good alternative.

This is not an alternative

@jasperf
Copy link

jasperf commented Sep 12, 2019

Did some more research yesterday @MammutAlex . Though Laravel 5 Generators Extended is not a true replacement it does make migrations much easier as you can add columns and column types to commands to generate your migrations that much faster. There is a Laracasts Video on it too, but cannot locate it now.

However if you need to convert a database to migrations I did find a Sequel Pro extension. Perhaps there is one for MySQL Workbench too.

@jase-languasco
Copy link

jase-languasco commented Sep 24, 2019

@jasperf +1 to the Sequel Pro extension. I just used it on 400 + tables and it worked well.

@jasperf
Copy link

jasperf commented Sep 24, 2019

@jase-languasco Good to hear it worked well for you too man.

@Bagadulittle
Copy link

@Bernhard: You´ve done a realy good job!
Will you make it compatible for laravel 6?
or is there a way to install it anyway?
For me it is no option to install laravel in Required Version. I Need Laravel6. ;)
I think the problem is that your code depends on jeffry´s old laravel-4-generator not the https://github.com/laracasts/Laravel-5-Generators-Extended
thnx

@Xethron
Copy link
Owner

Xethron commented Oct 11, 2019

@Bagadulittle Yes, that seems to be the problem. Will require some work to get it working with 6 I think.

For now, the best workaround is to install a fresh copy of Laravel 5.*, generate the migrations, and copy them across.

@Bagadulittle
Copy link

@Xethron: thanks that´s what i do at the moment. And that´s a little laborious, But i allways think abougth to r3write the hole thing. If i do this i get you in touch. thanX for your reply.

@vahidalvandi
Copy link

please add support laravel 6

@leonelhrp
Copy link

pleaseee @vahidalvandi

@vahidalvandi
Copy link

i found new solution with EER model and mysql workbench 8
https://www.aparat.com/v/boFdX

@johncarlson21
Copy link

It does slightly work with new version of of WB 8 but just lets you preview where you can copy/paste a large amount of data and split it

@oscarafdev
Copy link

Use https://github.com/oscarafdev/migrations-generator

@danangs57
Copy link

Use https://github.com/oscarafdev/migrations-generator
in 6*2 still has error

@trentramseyer
Copy link

trentramseyer commented Dec 6, 2019

Use https://github.com/oscarafdev/migrations-generator
in 6*2 still has error

If you get the camel_case error just change the lines to this

           $converted = Str::camel($this->migrationName);

	return [
		'CLASS' => ucwords($converted),
		'UP'    => $up,
		'DOWN'  => $down
	];

@oscarafdev
Copy link

Use https://github.com/oscarafdev/migrations-generator
in 6*2 still has error

Fixed, ty

@hose1021
Copy link

Use https://github.com/oscarafdev/migrations-generator
in 6*2 still has error

Fixed, ty

image

@Mr-Fadul
Copy link

Mr-Fadul commented Dec 12, 2019

camel_case error not fixed, how to fix?

edit: fixed but composer dont download the most recent fix, edit to this.

return [
'CLASS' => ucwords(\Str::camel($this->migrationName)),
'UP' => $up,
'DOWN' => $down
];

@oscarafdev
Copy link

camel_case error not fixed, how to fix?

edit: fixed but composer dont download the most recent fix, edit to this.

return [
'CLASS' => ucwords(\Str::camel($this->migrationName)),
'UP' => $up,
'DOWN' => $down
];

Sorry, I forgot to create a new release

@EVNIKHIL
Copy link

'CLASS' => ucwords(\Str::camel($this->migrationName)),

Please change '\Str' to 'Str' if you have used the 'use Illuminate\Support\Str;' on top. I got an error

@eranamarante
Copy link

Use https://github.com/oscarafdev/migrations-generator

I get this error upon executing "composer require oscarafdev/migrations-generator 2.0.16"
Your requirements could not be resolved to an installable set of packages.

Sorry still a newbie in laravel :(

@kitloong
Copy link

kitloong commented Apr 3, 2020

I have updated the package with more data type supports such as json, set, spatial type like geometry, point, and fixed some issues.

It also support Laravel from 5.6 to 7.0

Please try https://github.com/kitloong/laravel-migrations-generator and comment

@vladislavtkachenko
Copy link

I have updated the package with more data type supports such as json, set, spatial type like geometry, point, and fixed some issues.

It also support Laravel from 5.6 to 7.0

Please try https://github.com/kitloong/laravel-migrations-generator and comment

It works on Laravel 7.4.0 & php 7.4.3

@ssmusoke
Copy link

ssmusoke commented May 8, 2020

@kitloong is it possible to force the migrations to be regenerated, when I run it twice I get two sets of migrations.

Thanks by the way for making this Laravel 6 and 7 compatible

@kitloong
Copy link

@ssmusoke Thank you.
Currently there is no way to merge new generated migrations with existing.
You need to delete the old set before generate new migrations.

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