datatracker/ietf
Jim Schaad a18bebe7bd Make sure that the same rule cannot be entered twice in a community list.
As part of this fix, you need to do the following:
1.  Eliminate duplicates currently in the data base.  This statement can be used to identify them.

SELECT e1.id id1, e2.id id2, e1.community_list_id, e1.rule_type, e1.value FROM ietf_utf8.community_rule e1 JOIN ietf_utf8.community_rule e2 ON (e1.id != e2.id AND e1.community_list_id=e2.community_list_id AND e1.rule_type=e2.rule_type AND e1.value=e2.value);

2.  Delete any current duplicate lines in the text.  This uses the following commands as of the check-in

DELETE FROM TABLE ietf_utf8.community_rule WHERE id=19 OR id=91 OR id=177

3.  Add a constraint to the table so that it will enforce the rule itself

ALTER TABLE ietf_utf8.community_rule ADD CONSTRAINT pc_CommunityRule UNIQUE (community_list_id, rule_type, value)
 - Legacy-Id: 5426
2013-02-09 18:09:33 +00:00
..
announcements Apply fix to missing nomcom chair in [4384] instead of [4385]. 2012-05-04 13:47:15 +00:00
bin Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
community Make sure that the same rule cannot be entered twice in a community list. 2013-02-09 18:09:33 +00:00
contrib Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
cookies Set up app-specific email addresses so the respective developers will be notified about failures in code they have worked with. 2011-07-23 12:49:56 +00:00
database-notes Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
doc Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
group Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
idindex Added a new field, #16: draft AD (name and email) to all_id2.txt 2012-12-15 22:43:10 +00:00
idrfc Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
idtracker Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
iesg Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
ietfauth Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
ietfworkflows Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
ipr Made the IPR country field wider to accomodate IPR disclosures referencing many patent instances in many countries. 2012-12-03 13:19:02 +00:00
liaisons Merged [4866] from rjsparks@nostrum.com: 2012-10-21 18:00:51 +00:00
mailinglists Merged in changes from the conversion branch 2011-06-28 18:20:20 +00:00
meeting Merged [5000] from rjsparks@nostrum.com: 2012-11-07 13:01:34 +00:00
message Save announcements generated by the system as Messages, adding an 2012-02-08 21:05:28 +00:00
name Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
person Add an initials() method on Person. 2012-10-25 21:11:10 +00:00
proceedings Ported week view over to use the new meeting data model 2012-03-24 14:16:23 +00:00
redirects merged in from 4.20-ise 2012-06-22 20:25:17 +00:00
release Handle an unrecognized revision more gracefully. 2012-10-30 22:15:55 +00:00
submit Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
sync Added an INSTALL file which holds a record of general and version-specific actions needed to install. 2013-01-20 15:19:31 +00:00
templates Modify atom change feed so that 2013-02-04 17:45:03 +00:00
utils Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00
wgchairs Merged [4999] from jmh@joelhalpern.com: 2012-11-07 12:50:38 +00:00
wgcharter Removed debug statements. 2012-11-13 14:52:55 +00:00
wginfo Limit the 1wg-summary list and friends to WGs, (excluding the 'iesg' area which lists the areas as subgroups, for instance). 2012-11-14 11:32:33 +00:00
.gitignore Fixes #563 2010-12-02 20:34:50 +00:00
__init__.py Set version info to release version 4.40 before branching. 2013-01-20 15:38:24 +00:00
context_processors.py Moves the prefix for the URI to use for rfcdiff into settings.py. 2012-07-28 20:19:36 +00:00
legacy_router.py Remove unused code 2012-01-04 16:58:41 +00:00
manage.py Adjusted the scribe template to make it XHTML compliant and fix what Robert broke 2012-07-29 01:09:41 +00:00
middleware.py Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
settings.py Set version info to release version 4.40 before branching. 2013-01-20 15:38:24 +00:00
settings_sqlitetest.py Split database into current and legacy, adding importer to copy reused 2011-12-22 18:34:19 +00:00
urls.py Merged branch/iola/statesync up to @5118 to trunk. 2012-12-20 20:32:03 +00:00