Git Product home page Git Product logo

migratelint's Introduction

Migratelint

Encoding rules from Braintree’s “Safe Operations for High Volume PostgreSQL and “PostgreSQL at Scale: Database Schema Changes Without Downtime” as Postgres migration linter rules using pg_query.

Example

❯ docker run -v $(pwd)/testdata:/testdata deliveroo/migratelint:1.0.0 check /testdata/*.sql
/testdata/add_column_with_unique_constraint.sql => New columns with unique constraints are unsafe.
/testdata/add_multiple_columns_with_violation.sql => Type changes on existing columns are unsafe.
/testdata/alter_existing_column_type.sql => Type changes on existing columns are unsafe.
/testdata/create_index_without_concurrently.sql => Indexes must be created with CONCURRENTLY.
/testdata/create_table_with_index.sql => Indexes must be created with CONCURRENTLY.

migratelint's People

Contributors

jeffreylo avatar

Stargazers

Keith Mitchell avatar

Watchers

Steffan Williams avatar Graeme Bradbury avatar Akshay Navle avatar Frédéric G. MARAND avatar  avatar Oleksandr Karpenko avatar Vincent Bonmalais avatar Tugcem Oral avatar Marcus Lewis avatar Tugberk Ugurlu avatar Stuart Frisby avatar John Plummer avatar Michelle Anderson avatar Maciej Matecki avatar Ulises Tirado Zatarain avatar David Conde Marin avatar Neil Macy avatar Ivan K. avatar James Cloos avatar Peter Rosser avatar Vladimir Korbut avatar Oleg Lobanov avatar Bohdan Yurov avatar Phil Hack avatar Nav Garcha avatar Daniel avatar Serhiy Moskovchuk avatar Ivailo Hristov avatar David Miguel Antunes avatar H Z avatar  avatar David Reed avatar Dmitriy avatar Maria Neumayer avatar Anton Tolchanov avatar Ihor Voloshyn avatar Sofoklis Gialamouidis avatar Sherif Hafiz avatar Vishmi Money avatar Chris Shepherd avatar Jamie Tanna avatar abderrahim.boussetta avatar Lex avatar aaronfowles avatar Sandy Ganoti avatar Ravi Verma avatar Wayne avatar Vance Longwill avatar Emanuel Comsa avatar Jonny Wildey avatar  avatar Tom Seddon avatar Kermit Norlund avatar Nikolai Kavtur avatar James Beattie avatar Connor avatar Maya avatar Bassam Bsata avatar Piotr Lewandowski avatar Tobias Hale avatar Krzysztof Rybka avatar Iulian Clita avatar Stephan Pakholok avatar Emanuel Munteanu avatar Bartosz Bańczerowski avatar  avatar Ozzy Giritli avatar Alex Simion avatar Scott Riley avatar Sylwester avatar Michal Bock avatar Steven Kang avatar Slav H avatar Roman Mazurenko avatar Rajat Gupta avatar Bernadette Varga avatar Andras Zsamboki avatar Russ avatar  avatar Michael Evans avatar LinkThrow avatar Aakash Singhal avatar Aditya Bansal avatar Anastasios Kichidis avatar Carling Knight avatar Thomas Truong avatar Shrikant Gupta avatar Connie Reinholdsson avatar Virendra avatar Steve Shanks avatar  avatar Tobiloba Adeniyi avatar Vandit Mehta avatar Diana C Robles avatar Burak Takmaz avatar

migratelint's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update ruby Docker tag to v3

Detected dependencies

dockerfile
Dockerfile
  • ruby 2.7

What is Renovate? Check out the FAQs at http://go/renovate/faqs and come by #renovate on Slack to chat!

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.