On Sunday 10 January 2016 08:09:33 Carl Meyer wrote:
> On 01/09/2016 09:29 AM, Shai Berger wrote:
> > There are two kinds of data migrations, generally speaking.
> > 
> > [...]
> >
> > The other is migrations which *create* data -- fill in tables for
> > database- implemented-enums, for example. If you remove these, you are
> > going to break your tests (if you do this and haven't broken your tests,
> > your tests are missing -- I'd go as far as calling them broken).
> 
> I consider this second kind of data migration to be marginally smelly,
> and avoid it whenever possible.

It should be noted that this kind of migration is what we recommend officially
as a substitute for initial_data fixtures:

https://docs.djangoproject.com/en/1.8/howto/initial-data/#automatically-loading-initial-data-fixtures

Shai.
  • ... Peter Baumgartner
    • ... Aymeric Augustin
      • ... Andrew Godwin
      • ... Carl Meyer
        • ... Peter Baumgartner
          • ... Markus Holtermann
        • ... 'Hugo Osvaldo Barrera' via Django developers (Contributions to Django itself)
          • ... Shai Berger
            • ... charettes
            • ... Carl Meyer
            • ... Shai Berger
            • ... RenĂ© Fleschenberg

Reply via email to