~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/registry/schema/__init__.py

  • Committer: Marc Tardif
  • Date: 2012-03-21 22:32:04 UTC
  • Revision ID: marc.tardif@canonical.com-20120321223204-8g7mvzzwmh8ifbrt
Added support for getting systems from a person (LP #899361)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
CREATES = [
18
18
"""
19
 
GRANT SELECT
 
19
GRANT SELECT, INSERT
20
20
    ON TABLE patch
21
21
    TO lpresults
22
22
""",
23
23
"""
24
 
CREATE LANGUAGE plpythonu
 
24
CREATE OR REPLACE LANGUAGE plpythonu
25
25
""",
26
26
"""
27
27
CREATE FUNCTION valid_name(TEXT) RETURNS BOOLEAN
237
237
    TO lpresults
238
238
""",
239
239
"""
240
 
CREATE LANGUAGE plpgsql
 
240
CREATE OR REPLACE LANGUAGE plpgsql
241
241
""",
242
242
"""
243
243
CREATE FUNCTION distribution_insert_or_update_after() RETURNS TRIGGER