Giter Site home page Giter Site logo

pankrat.github.io's People

Contributors

pankrat avatar primoz-k avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

primoz-k

pankrat.github.io's Issues

Postgres Foreign Key Constraints

Nice article on django migrations!

A missing major item is adding foreign key constraints. Adding them on a large table can cause havoc on both the base and foreign table. It'd be great to add a section about this to your post.

Post-deployment migrations support

Hello @Pankrat, I wanted to reach out to let you know that you might be interested in https://github.com/charettes/django-syzygy which implements the last missing point on your Django wishlish from your 2015 posts.

I've been actively contributing to Django's migration framework over the years and plan on trying to eventually get the concept of pre and post deployment migrations into core once I received appropriate feedback on the idea.

I know it's been a while but I figured you might be interested in learning about the development on the topic.

Django Migration Idempotent Clarification

Hi,

Thanks for sharing this blog post. I just wanted to point out one issue. In the post, you state

As Django migrations are idempotent

This statement is misleading and not accurate. It's fair to say that under certain happy path conditions Django's migration commands are idempotent, but the migrations themselves are not. For example, you cannot re-run a specific migration that creates a table because the compiled SQL code uses CREATE TABLE. If the migration itself were idempotent, it would use CREATE TABLE IF NOT EXISTS and so on.

Moreover, Django migrations are stateful (state is tracked in thedjango_migrations table) and IMO statelessness is an important property of an idempotent system.

Thanks,

Michael

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.