Code Monkey home page Code Monkey logo

Comments (9)

eoyilmaz avatar eoyilmaz commented on August 18, 2024 1

Fixed in ef21f1b

from stalker.

jasperges avatar jasperges commented on August 18, 2024

Mmm, that's weird. I just wanted to read the database (created in Stalker 0.2.17.6) in version 02.18 and got an error. I checked again with opening a database created with Stalker 0.2.15.1 (just to be sure) and got the same error. This is when using db.setup(). So it seems to do exactly what you would like it to do. Strange that you didn't get this. This is the traceback I got:

----> 1 db.setup()

/Volumes/data/src/project_management/stalker/stalker/db/__init__.py in setup(settings)
     70     # check alembic versions of the database
     71     # and raise an error if it is not matching with the system
---> 72     check_alembic_version()
     73
     74     # create the database

/Volumes/data/src/project_management/stalker/stalker/db/__init__.py in check_alembic_version()
    213     if current_alembic_version and current_alembic_version != alembic_version:
    214         raise ValueError(
--> 215             'Please update the database to version: %s' % alembic_version
    216         )
    217

ValueError: Please update the database to version: 31b1e22b455e

from stalker.

eoyilmaz avatar eoyilmaz commented on August 18, 2024

@fredrikaverpil what is the alembic_version of the database that you are trying to connect with Stalker 0.2.18.

from stalker.

fredrikaverpil avatar fredrikaverpil commented on August 18, 2024

I don't have access to that database until maybe tomorrow, as I'm working from home due to an Internet outage at our studio. But looking at #51, it should be f2005d1fbadc.

from stalker.

eoyilmaz avatar eoyilmaz commented on August 18, 2024

Is this issue still present, can we close it or does it need further investigation.

from stalker.

fredrikaverpil avatar fredrikaverpil commented on August 18, 2024

I can check today if 0.2.20 can read a 0.2.18 database and will report back.

from stalker.

fredrikaverpil avatar fredrikaverpil commented on August 18, 2024

This issue can be closed! 👍 😄

When attempting to connect to a 0.2.18 db with Stalker 0.2.20, I get this:

Please update the database to version: ed0167fff399

from stalker.

eoyilmaz avatar eoyilmaz commented on August 18, 2024

Thanks 👍

from stalker.

eoyilmaz avatar eoyilmaz commented on August 18, 2024

I found that upon connecting to an older database, even that Stalker is raising a ValueError (where it should be raising some database related error) the session remains open, so this issue is not closed yet. I'll commit a fix soon.

from stalker.

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.