Code Monkey home page Code Monkey logo

Comments (6)

ucswift avatar ucswift commented on June 15, 2024 1

Ive added your suggested fix and pushed it up. https://github.com/Resgrid/Core/pull/20/files#diff-7d4c97ef391c3330c175ddf7077c0646e3d77994ea8be2c54de0bbc36fb94e1d I'll be working on testing everything out this weekend to try and get the new release pushed out.

from core.

ucswift avatar ucswift commented on June 15, 2024 1

I implemented your fix in #21.

from core.

ucswift avatar ucswift commented on June 15, 2024

Hey @anewio thanks for the report!! If you want to deploy and update the db, we use fluent migrator and you can deploy it like this:

dotnet tool install -g FluentMigrator.DotNet.Cli
dotnet fm migrate -p SqlServer -c "[YOUR CONNECTION STRING]" -a "C:\Resgrid\Tools\Resgrid.Providers.Migrations.dll"

I'll look at getting that above error fixed as well.

from core.

anewio avatar anewio commented on June 15, 2024

Thanks @ucswift for the quick response. With the latest commit, `Resgrid.Console.exe dbupate' moves down few steps but ends up with another exception, see attached.

image

Above error message tells FluentMigrator was not able to load the embedded migration SQL file: M0001_InitialMigration.sql for some reasons. The root cause doesn't seem obvious to me in the first place. After few research, I believe the fix is to add one more function call (see line #66) in the FluentMigrator configuration routine at file: DbUpdateCommand.cs as below (see line #65 and #66). After the fix, `Resgrid.Console.exe dbupate' finally works successfully.

image

from core.

ucswift avatar ucswift commented on June 15, 2024

@anewio do you get the error if you use the FluentMigrator.DotNet.Cli tool? I've been using that at the moment, but trying to get the Cli working to match documentation. Thanks for that research too, I'll get that added to the code.

from core.

anewio avatar anewio commented on June 15, 2024

@anewio do you get the error if you use the FluentMigrator.DotNet.Cli tool? I've been using that at the moment, but trying to get the Cli working to match documentation. Thanks for that research too, I'll get that added to the code.

CLI appears working.

from core.

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.