Giter Site home page Giter Site logo

Comments (3)

SmileyChris avatar SmileyChris commented on July 1, 2024

Hi pigletto - it sounds like you haven't run the south migrations. Storage is no longer a separate table.

If you're using mysql though, I think the migrations are screwed up. You'll want to follow issue 45 if that's the case.

from easy-thumbnails.

pigletto avatar pigletto commented on July 1, 2024

I did a fresh install of easy_thumbnails. I did both syncd and migrate and I use PostgreSQL.
After running syncdb and migrate (no errors) I have these tables in database: easy_thumnbails_source, easy_thumnbails_storage and easy_thumbnails_thumbnail. The storage_id (integer not null) column exists in easy_thumbnails_source.

You say that there is no longer separate table for storage, but from migration files it seems to me that:

  1. migration 0003 creates table storage_new
  2. migration 0009 deletes table storage
  3. migration 0010 renames storage_new to storage

so there still exists storage table.

I've looked into issue 45 and checked code for migration: 0010_rename_storage.py.
Seems to me that foreign key to storage is only removed for mysql now.

from easy-thumbnails.

SmileyChris avatar SmileyChris commented on July 1, 2024

Thanks for your investigations. It does seem like I lost a very important migration somewhere along the way :-/

In any case, I've just pushed a change (35d1d3f) which adds in migration 0013 that should get the definitions to where they should be.

from easy-thumbnails.

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.