liquid_feedback_core

diff core.sql @ 38:c78ab22c4870

Added missing DELETEs in function "delete_private_data"(); Fixed wrong COMMENT statement for table "member_relation_setting"
(includes new file update/core-update.beta23-beta24.sql)
author jbe
date Mon Mar 08 14:23:54 2010 +0100 (2010-03-08)
parents c3b72b644cc8
children 0dfc5e164b52
line diff
     1.1 --- a/core.sql	Thu Mar 04 00:51:12 2010 +0100
     1.2 +++ b/core.sql	Mon Mar 08 14:23:54 2010 +0100
     1.3 @@ -6,7 +6,7 @@
     1.4  BEGIN;
     1.5  
     1.6  CREATE VIEW "liquid_feedback_version" AS
     1.7 -  SELECT * FROM (VALUES ('beta23', NULL, NULL, NULL))
     1.8 +  SELECT * FROM (VALUES ('beta24', NULL, NULL, NULL))
     1.9    AS "subquery"("string", "major", "minor", "revision");
    1.10  
    1.11  
    1.12 @@ -150,7 +150,7 @@
    1.13          "value"                 TEXT            NOT NULL );
    1.14  CREATE INDEX "setting_key_idx" ON "setting" ("key");
    1.15  
    1.16 -COMMENT ON TABLE "setting" IS 'Place to store a frontend specific settings for members as a string';
    1.17 +COMMENT ON TABLE "setting" IS 'Place to store a frontend specific setting for members as a string';
    1.18  
    1.19  COMMENT ON COLUMN "setting"."key" IS 'Name of the setting, preceded by a frontend specific prefix';
    1.20  
    1.21 @@ -177,7 +177,7 @@
    1.22          "other_member_id"       INT4            REFERENCES "member" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
    1.23          "value"                 TEXT            NOT NULL );
    1.24  
    1.25 -COMMENT ON TABLE "setting" IS 'Place to store a frontend specific settings related to relations between members as a string';
    1.26 +COMMENT ON TABLE "member_relation_setting" IS 'Place to store a frontend specific setting related to relations between members as a string';
    1.27  
    1.28  
    1.29  CREATE TYPE "member_image_type" AS ENUM ('photo', 'avatar');
    1.30 @@ -3207,11 +3207,18 @@
    1.31          "external_posts"               = NULL,
    1.32          "statement"                    = NULL;
    1.33        -- "text_search_data" is updated by triggers
    1.34 -      DELETE FROM "session";
    1.35 +      UPDATE "member_history" SET "login" = 'login' || "member_id"::text;
    1.36        DELETE FROM "invite_code";
    1.37 +      DELETE FROM "setting";
    1.38 +      DELETE FROM "setting_map";
    1.39 +      DELETE FROM "member_relation_setting";
    1.40 +      DELETE FROM "member_image";
    1.41        DELETE FROM "contact";
    1.42 -      DELETE FROM "setting";
    1.43 -      DELETE FROM "member_image";
    1.44 +      DELETE FROM "session";
    1.45 +      DELETE FROM "area_setting";
    1.46 +      DELETE FROM "issue_setting";
    1.47 +      DELETE FROM "initiative_setting";
    1.48 +      DELETE FROM "suggestion_setting";
    1.49        DELETE FROM "direct_voter" USING "issue"
    1.50          WHERE "direct_voter"."issue_id" = "issue"."id"
    1.51          AND "issue"."closed" ISNULL;

Impressum / About Us