GithubHelp home page GithubHelp logo

Comments (13)

Xethron avatar Xethron commented on August 16, 2024

I haven't had a chance to test it on Laravel 5 tbh. Not sure if it will work out of the box.

from migrations-generator.

ssx avatar ssx commented on August 16, 2024

No worries, I'll fork and test it out then submit a PR if it's all good.

from migrations-generator.

Xethron avatar Xethron commented on August 16, 2024

Have you been able to get it to work? Or is there a lot that needs changing?

from migrations-generator.

ssx avatar ssx commented on August 16, 2024

I'd forgotten about this, I can take a look this weekend and report back to you

from migrations-generator.

GC-Mark avatar GC-Mark commented on August 16, 2024

Any updates on this?

from migrations-generator.

ivomarino avatar ivomarino commented on August 16, 2024

I would also be interested in this, actually during composer update I get:

% composer update
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
    - Installation request for xethron/migrations-generator dev-master -> satisfiable by xethron/migrations-generator[dev-master].
    - Conclusion: remove laravel/framework v5.0.0
    - xethron/migrations-generator dev-master requires illuminate/support ~4.1 -> satisfiable by illuminate/support[v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, v4.1.14, v4.1.15, v4.1.16, v4.1.17, v4.1.18, v4.1.19, v4.1.2, v4.1.20, v4.1.21, v4.1.22, v4.1.23, v4.1.24, v4.1.25, v4.1.26, v4.1.27, v4.1.28, v4.1.29, v4.1.3, v4.1.30, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.1, v4.2.12, v4.2.16, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
    - don't install illuminate/support v4.1.0|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.1|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.10|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.11|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.12|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.13|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.14|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.15|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.16|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.17|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.18|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.19|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.2|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.20|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.21|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.22|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.23|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.24|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.25|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.26|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.27|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.28|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.29|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.3|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.30|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.4|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.5|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.6|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.7|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.8|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.1.9|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.1|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.12|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.16|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.2|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.3|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.4|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.5|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.6|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.7|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.8|don't install laravel/framework v5.0.0
    - don't install illuminate/support v4.2.9|don't install laravel/framework v5.0.0
    - Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[v5.0.0].

from migrations-generator.

jamisonvalenta avatar jamisonvalenta commented on August 16, 2024

I decided to start the slow process of moving one of my CI apps over to L5 now that 5.0 is out. First feature will be migrations.

I fuddled with it a bit last night and got this package to run. Some code changes, but mostly just different setup config (where you register artisan commands, binding the migration repository interface, lack of package registration, etc). L5 pushed a lot of package=>framework binding points around. Config is annoyingly different.

Also, there's an issue with way\generators and binding its shipped config (just like with all L4 packages). I'll need to check to see if he has a ~2 compatible update for L5 or if we'll have to deal with upgrading to ~3.

Hopefully I'll have a PR up of some sort in the next couple of days.

from migrations-generator.

JayBizzle avatar JayBizzle commented on August 16, 2024

@jamisonvalenta good stuff, looking forward to the PR

from migrations-generator.

Xethron avatar Xethron commented on August 16, 2024

@jamisonvalenta I also started playing with it last weekend, and it appears we would have to rewrite the code I stole from @JeffreyWay as he won't be updating his Generators.

We have one of three options mostly. Submit a PR to the @laravel source for the features required to write the migrations, extend their class and build in our own functionality, or don't depend on other classes and let the plugin handle everything.

Personally, I'd push for the first option. It means there's less code to maintain, and if the styling ever changes, its the responsibility of Laravel to update it.

Doctrine and the plugin itself seems to work fine with some minor changes.

I have created a new branch called l5 that we can all work on. The composer package has also been updated to work with Laravel 5, so you can require it in composer as such:

"require-dev": {
    "xethron/migrations-generator": "dev-l5"
}

I'm also thinking that the actual structure of the classes might need to be revised... I never really liked it. Any ideas are welcome.

@jamisonvalenta would like to see what you're busy with so we don't do double work. I'm going to spend some time extending the L5 migrations generator class, and work in the features we require to write specific values. Once done, I'll see if I can get it into the Laravel source which would help other packages that might want to do something similar.

from migrations-generator.

jamisonvalenta avatar jamisonvalenta commented on August 16, 2024

Ugh. Sorry, composer is being a serious pain.

This package almost works out of the box. There a couple of changes necessary inside of the migrations service provider, and there are also a few changes that need to be made to way/generators to be L5 ready. My thought has always been to do a two-fold approach:
1 - spin up a temporary package that allows the package to be used with L5
2 - consider a rewrite
3 - do the rewrite

If I could just get composer to behave I would be happy to host the changes to way/generators that would get this package up and running again while @Xethron contemplates/implements a rewrite.

Ok. Diving in again.

from migrations-generator.

jamisonvalenta avatar jamisonvalenta commented on August 16, 2024

Composer debugged. @Xethron, I have a PR up: #40. Pull failed unit testing, but it looks like at least one of the tests will need to be rewritten (registers_the_package), since that doesn't happen in L5 anymore.

from migrations-generator.

Xethron avatar Xethron commented on August 16, 2024

Everything seems to be working. Closing issue

from migrations-generator.

ssx avatar ssx commented on August 16, 2024

Cheers ears! 👍

from migrations-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.