Giter Club home page Giter Club logo

Comments (6)

Startrekzky avatar Startrekzky commented on June 16, 2024

Did you collect some files with paths longer than varchar 255?

from incubator-devlake.

msaffitz avatar msaffitz commented on June 16, 2024

Yes @Startrekzky -- we have files in GitHub whose path + name are longer than 255 characters.

I'm happy to do a PR, but am not sure if the existing migration should be updated or needs to be a new migration? (if it's a new migration, do they get applied sequentially, or will the new one preclude the existing one that's breaking).

from incubator-devlake.

Startrekzky avatar Startrekzky commented on June 16, 2024

Perhaps @klesh could help here.

from incubator-devlake.

abeizn avatar abeizn commented on June 16, 2024

@msaffitz It takes effect in version v1.0.0-beta7.

from incubator-devlake.

msaffitz avatar msaffitz commented on June 16, 2024

@msaffitz It takes effect in version v1.0.0-beta7.

thanks @abeizn . I'm still seeing this on beta7:

| time="2024-05-10 22:34:10" level=info msg="\x1b[31;1m/app/impls/dalgorm/dalgorm.go:146 \x1b[35;1mError 1406 (22001): Data too long for column 'file_path' at row 2836\n\x1b[0m\x1b[33m[91.670ms] \x1b[34;1m[rows:0]\x1b[0m ALTER TABLE commit_files MODIFY COLUMN file_path VARBINARY(255);"

does it apply the migrations in order? (i.e. is it trying to first set to 255 and then apply the change to 1024? is there a way to skip the intermediate migration?

thanks again!

from incubator-devlake.

msaffitz avatar msaffitz commented on June 16, 2024

(looks like I was able to bypass it by manually adding an entry for the bad migration in the migration history table.

thanks again!

from incubator-devlake.

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.