liquid_feedback_core
annotate update/core-update.v1.2.6-v1.2.7.sql @ 79:0758a2e02620
implement auto_support and delegation checks
* users can put their support in auto_support mode that supports every new draft text, this is automaticly done for the author of the draft.
* enforce that new delegations cannot be done set on inactive members.
* delete also incomming delegations on delete of a user.
* users can put their support in auto_support mode that supports every new draft text, this is automaticly done for the author of the draft.
* enforce that new delegations cannot be done set on inactive members.
* delete also incomming delegations on delete of a user.
| author | Daniel Poelzleithner <poelzi@poelzi.org> |
|---|---|
| date | Thu Oct 07 19:45:12 2010 +0200 (2010-10-07) |
| parents | dcaa1525c388 |
| children |
| rev | line source |
|---|---|
| jbe@72 | 1 BEGIN; |
| jbe@72 | 2 |
| jbe@72 | 3 CREATE OR REPLACE VIEW "liquid_feedback_version" AS |
| jbe@72 | 4 SELECT * FROM (VALUES ('1.2.7', 1, 2, 7)) |
| jbe@72 | 5 AS "subquery"("string", "major", "minor", "revision"); |
| jbe@72 | 6 |
| jbe@72 | 7 DROP VIEW "global_delegation"; |
| jbe@72 | 8 |
| jbe@72 | 9 CREATE VIEW "global_delegation" AS |
| jbe@72 | 10 SELECT "id", "truster_id", "trustee_id" |
| jbe@72 | 11 FROM "active_delegation" WHERE "scope" = 'global'; |
| jbe@72 | 12 |
| jbe@72 | 13 COMMIT; |