~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to userdb/migrations/20100727-02.sql

  • Committer: William Grant
  • Date: 2010-07-27 10:44:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1824.
  • Revision ID: grantw@unimelb.edu.au-20100727104414-meuycir4c0dqbpe2
Update schema, add missing UNIQUE constraint, and update sample data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
ALTER TABLE semester RENAME COLUMN semester TO url_name;
4
4
ALTER TABLE semester ADD COLUMN display_name TEXT;
5
5
ALTER TABLE semester ADD COLUMN code TEXT;
 
6
ALTER TABLE semester ADD CONSTRAINT semester_year_key1
 
7
    UNIQUE (year, code);
6
8
 
7
9
UPDATE semester SET code = UPPER(url_name);
8
10
UPDATE semester SET display_name = 'semester ' || code;