Giter Club home page Giter Club logo

Comments (4)

lecaillon avatar lecaillon commented on July 28, 2024

Hi Catalin,

I think Evolve does not find the Migration_Scripts folder in in-app mode.
It works via MsBuild because the MsBuild task copy the Locations folders to the output folder for you. If you use Evolve directly you have 3 options:

  • Set the full path to your migration folder
  • Set the relative path to your migration folder from the output folder of your project
  • Use Visual Studio on each of your .sql file and modify the Copy to Output Directory property to Copy always

Don't hesitate to give me some feedback 😃

from evolve.

 avatar commented on July 28, 2024

Hi Philippe,

Thank you for your quick response.I set the full path to the migration folder and it works.
I don't want to use the MsBuild and I removed the options from Web.config and the application only uses the In-app mode.
I've met another problem, when I add a new .sql file in Migration_Scripts I have to build the project and run the application to migrate the file, if I don't build the project the .sql file won't migrate.
Is there a way to migrate the file/s without building the project after I add a file in the migrations folder?

from evolve.

lecaillon avatar lecaillon commented on July 28, 2024

I don't reproduce your issue. I think you are struggling with your location path.
In your case, be sure to use the original Migration_Scripts folder, not the one Evolve build task will copy in your output folder.

from evolve.

 avatar commented on July 28, 2024

Hi,

The problem was that I wanted to migrate the sql files in Application_Start method from Global.asax.cs.I needed to restart IIS and run the application again to solve this.I didn't pay attention to this detail.
Your migration tool is very useful and I am looking forward to use it.
Thank you for your quick responses.

from evolve.

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.