Find a file
Henrik Levkowetz f7d979c83e Merged [5426] from ietf@augustcellars.com:
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: 5460
Note: SVN reference [5426] has been migrated to Git commit a18bebe7bd
2013-02-24 21:03:57 +00:00
bin Moved some utility command-line scripts from test/ to bin/. Added bin/graph-models. 2013-02-24 20:09:01 +00:00
django Small patch from olau@iola.dk to avoid constant 500 traceback when someone tries to push an invalid cookie. 2012-06-29 00:33:54 +00:00
etc Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
html5lib Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
ietf Merged [5426] from ietf@augustcellars.com: 2013-02-24 21:03:57 +00:00
permissions Remove a bunch of old admin files, fix a couple of issues with the new ones, add admin for meeting 2012-02-28 17:29:52 +00:00
redesign Merged in fixes to the migration from olau@iola.dk. Merged in charter branch from olau@iola.dk. Added various fixes and correction of merge errors. 2012-05-02 19:35:32 +00:00
south Port to Django 1.2, replacing built-in patched Django with Django 1.2.7 (with patches applied on top) and replacing South with South 0.7.3 2011-12-15 14:13:54 +00:00
static Added various things which lets us use Django's messages framework to give feedback to users. This includes adding the messages middleware in settings.py, adding a message display are at the top of the page base template, and adding style setting for message display. 2012-10-30 13:28:24 +00:00
test Removed some incidental files from test/ (Generated as an effect of generating sprint branches, so they don't really belong in the repository). 2013-02-24 20:58:44 +00:00
workflows Remove a bunch of old admin files, fix a couple of issues with the new ones, add admin for meeting 2012-02-28 17:29:52 +00:00
.gitignore Fixes #563 2010-12-02 20:34:50 +00:00
changelog Changelog entry for 4.40 2013-01-20 15:38:23 +00:00
changelog.py Added a simple page to show release information parsed from a release's changelog file. 2012-10-25 21:29:53 +00:00
control Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
debug.py Tweaked the handling of the syslog module not being available on windows. 2012-11-07 21:41:02 +00:00
decorator.py Added Michele Simionato's decorator module, for use in debug.py 2012-10-21 12:38:04 +00:00
INSTALL 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
LICENSE Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
LICENSE.django Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
tzparse.py Added a module which handles parsing of time strings which include timezone information, tzparse.py. 2012-10-31 10:13:52 +00:00