Giter VIP home page Giter VIP logo

Comments (4)

Martinsos avatar Martinsos commented on August 15, 2024

I am experiencing the same problem on Linux! Although I feel like sometimes it worked, lately it does not seem to work hm. I wonder if even prisma migrate-save allows spaces? Or is this a mistake on our side?

How to go about this: First, check how prisma migrate-save works, if they allow space in the migration name. If not, that is it, we will also not allow it. If they do allow it, figure out why we don't -> are we incorrectly passing the arg(uments) to prisma migrate-save? Maybe we need to wrap them in ""? Just guessing.

from wasp.

matijaSos avatar matijaSos commented on August 15, 2024

Tried to reproduce again, but couldn't, seems it is working now. Prisma is allowing spaces.

I also checked out the implementation and that also looks ok - proc from System.Process accepts a list of arguments and getArgs from System.Environment parses e.g. "Add user" into ["Add user"] -> removes the quotes but keeps it as one string. So I believe that proc which accepts a [String] of args knows how to handle a string with spaces.

from wasp.

matijaSos avatar matijaSos commented on August 15, 2024

Managed to reproduce it: happens only in development, when running e.g. ./run wasp db migrate-save "some name". Investigate further, try with stack exec instead of run.

from wasp.

Martinsos avatar Martinsos commented on August 15, 2024

We deprecated migrate-save, now it is migrate-dev and name is asked for interactively.

from wasp.

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.