Incompatible Changes after 0.8 - Active Categories SQL

Issue #917 resolved
Zenos Schmickrath created an issue

The latest Incompatible Changes documentation - Active Categories - requiring a SQL update needs a slight change to set the default value for product category.

Current: {{{

!sql

alter table product_category add column "is_active" boolean not null; }}}

Expected: {{{

!sql

alter table product_category add column "is_active" boolean not null default True; }}}

Comments (3)

  1. Former user Account Deleted
    • changed status to open

    Those alter table statements originally had "default True", but Sqlite doesn't use True and False, so I changed them to be what "manage.py syncdb" would create for that column:

    "is_active" bool NOT NULL

  2. Log in to comment