GithubHelp home page GithubHelp logo

Comments (10)

ruohola avatar ruohola commented on August 17, 2024 1

There is a simple way to circumvent this problem. It's not a propre fix, but it makes this package usable: launch the program a first time, and let it crash. Afterwards, manually add an entry into the "migrations" table to prevent the faulty migration from being applied:

INSERT INTO migrations (id, name, ts) VALUES (8, 'packagefile_basename_unique.add_uniquie_basename_index', 'TIMESTAMP');

Replace TIMESTAMP with a valid timestamp (you can simply copy/paste one of the timestamps you get with the request SELECT ts from migrations)

You could just use CURRENT_TIMESTAMP when inserting.

from pypi-server.

HarryMWinters avatar HarryMWinters commented on August 17, 2024

Same. Bummer though. This would have fulfilled 120% of my use case.

from pypi-server.

la-sanchez avatar la-sanchez commented on August 17, 2024

Same here.

from pypi-server.

MoLt1eS avatar MoLt1eS commented on August 17, 2024

Having the same issue

from pypi-server.

jaredhanson11 avatar jaredhanson11 commented on August 17, 2024

+1, I ran into the same issue. I switched to https://github.com/pypiserver/pypiserver. Doesn't have a nice gui and user nice management, but it does the job effectively enough.

from pypi-server.

ruohola avatar ruohola commented on August 17, 2024

Still happening.

from pypi-server.

vlastocom avatar vlastocom commented on August 17, 2024

Just verified when researching #54 , this is still the case for the postgres configuration.

from pypi-server.

ruohola avatar ruohola commented on August 17, 2024

Unfortunately this issue made the whole package unusable, so I just used https://github.com/pypiserver/pypiserver.

from pypi-server.

fr-Pursuit avatar fr-Pursuit commented on August 17, 2024

There is a simple way to circumvent this problem. It's not a propre fix, but it makes this package usable: launch the program a first time, and let it crash. Afterwards, manually add an entry into the "migrations" table to prevent the faulty migration from being applied:

INSERT INTO migrations (id, name, ts) VALUES (8, 'packagefile_basename_unique.add_uniquie_basename_index', CURRENT_TIMESTAMP);

Edit: Thanks to @ruohola for his suggestion about the usage of CURRENT_TIMESTAMP !

from pypi-server.

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.