kapsiry/sikteeri — pull request #39 by annttu (2012-07-25 09:33:59+00:00)
Title: Required database modifications

Some database modifications for next sikteeri version.

Because django don't use database level enums and defaults. Database changes must be done like that:

ALTER TABLE membership_bill ADD COLUMN "type" varchar(1) NOT NULL DEFAULT 'E';
ALTER TABLE membership_bill ALTER COLUMN "type" DROP DEFAULT;
ALTER TABLE membership_membership ADD COLUMN "locked" timestamp with time zone;
ALTER TABLE membership_payment ADD COLUMN "duplicate" boolean NOT NULL DEFAULT FALSE;