Giter VIP home page Giter VIP logo

dbmate's People

Contributors

amacneil avatar cwinters avatar dthakur avatar handersongomes avatar kfr2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

deividask

dbmate's Issues

Push locking upstream?

The locking bits are pretty interesting and would be useful more broadly too.

Would you ever contribute them upstream to the original dbmate?

support for CRLF line terminators

Hi,
The current version does not seem to be able to read files with CRLF terminators.
I think this is causing it to effectively comment out all of the code.
noticed because it worked on the machine I created the files in, but not in any machine that updated the files from github.
I scanned two files for testing, this was the output of the files * command on Ubuntu:

20181123004251_test.sql: ASCII text, with CRLF line terminators
20181124185152_test1.sql: ASCII text

The test.sql file never ran, I forced good and bad SQL, it never created the tables or threw any errors.
The test1.sql always worked just fine.

Both files would show up on the schema_migrations table after running dbmate up.

After changing the line endings from CRLF to LF, test.sql ran as intended.

Support for utf8mb4

Hi, because of the following line, dbmate up outputs the following error message when applied to a utf8mb4, innodb (version<5.7) database: Error: Error 1071: Specified key was too long; max key length is 767 bytes

dbmate/mysql.go

Line 112 in 7bd6947

version varchar(255) primary key)`)

You should limit the version field to less chars (e.g 100) in order to avoid exceeding the 767 byes primary key limit (when multiplied by 4), or force a latin/utf8 encoding on the schema_migrations table ignoring the default db one. more details here: https://stackoverflow.com/a/1814594/1205281

Thanks

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.