Git Product home page Git Product logo

Comments (5)

WanWizard avatar WanWizard commented on September 2, 2024

I tried both with the current codebase (1.9/dev), but the generated model is in both cases exactly the same as it doesn't contain any constraint information, and I don't see any differences in the migration generated too, whether or not you use quotes. Both generate

    'lat' => array('constraint' => '10,8', 'type' => 'decimal'),
    'lng' => array('constraint' => '11,8', 'type' => 'decimal'),

I checked the code for recent changes, but this bit hasn't changed since 2011.

from oil.

ljubodrag avatar ljubodrag commented on September 2, 2024

I tested this thoroughly and it turned out to be a console issue and not a Fuel issue.
I use Windows machine for my development. When I ran this command in PowerShell it resulted in the error I described. But when I tried it in Cmd and in GitBash console, it worked perfectly.

I am closing this as an non-issue.

from oil.

WanWizard avatar WanWizard commented on September 2, 2024

Ok, so it is Powershell that did some "pre-parsing" of the parameters. It might be worth mentioning that in the docs, in case someone else bumps into it.

from oil.

ljubodrag avatar ljubodrag commented on September 2, 2024

I just found out that in Powershell commas make arrays (http://www.vistax64.com/powershell/236858-commas-powershell.html)

In the docs, on Oil introduction page, there could be a note for Windows users with recommended console utility (Git Bash - https://git-scm.com/downloads if they use git, which they probably do) or at least a note to avoid Powershell.

from oil.

WanWizard avatar WanWizard commented on September 2, 2024

Added a note about this, and your tip, to the oil generate docs page.

from oil.

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.