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

« back to all changes in this revision

Viewing changes to userdb/migrations/20100216-01.sql

  • Committer: mattgiuca
  • Date: 2008-01-31 01:44:30 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:345
Global CSS change: ivlebody no longer has 1em of padding (it has none).
This is because most apps were disabling it (and it had to change anyway for
other reasons -- see below).

Hence, all apps which WERE disabling the padding have had that removed, and
just work by default. (console, browser, tutorial)
All apps which WEREN'T disabling the padding (very few) now have to manually
include an extra div. This has been done on all such apps, and has been
heavily documented (both in the CSS file and doc/app_howto). (help, dummy,
debuginfo).

media/common/ivle.css: 
    The real change here (which isn't yet being used) is that ivlebody is now
    positioned absolutely and takes up all the space on the canvas. This is
    to be used for full-page layouts in console and browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
BEGIN;
2
 
 
3
 
CREATE OR REPLACE FUNCTION valid_url_name(name text) RETURNS boolean AS 
4
 
$$
5
 
    BEGIN
6
 
        RETURN name ~ E'^[a-z0-9][a-z0-9_\+\.\-]*$';
7
 
    END;
8
 
$$ LANGUAGE 'plpgsql';
9
 
 
10
 
CREATE OR REPLACE FUNCTION valid_login_name(name text) RETURNS boolean AS 
11
 
$$
12
 
    BEGIN
13
 
        RETURN name ~ E'^[a-z0-9][a-z0-9@_\+\.\-]*$';
14
 
    END;
15
 
$$ LANGUAGE 'plpgsql';
16
 
 
17
 
ALTER TABLE login ADD CONSTRAINT login_login_check CHECK (valid_login_name(login)); 
18
 
ALTER TABLE subject ADD CONSTRAINT subject_subj_short_name_check CHECK (valid_url_name(subj_short_name)); 
19
 
ALTER TABLE semester ADD CONSTRAINT semester_year_check CHECK (valid_url_name(year)); 
20
 
ALTER TABLE semester ADD CONSTRAINT semester_semester_check CHECK (valid_url_name(semester)); 
21
 
ALTER TABLE project ADD CONSTRAINT project_short_name_check CHECK (valid_url_name(short_name)); 
22
 
ALTER TABLE project_group ADD CONSTRAINT project_group_groupnm_check CHECK (valid_url_name(groupnm)); 
23
 
ALTER TABLE exercise ADD CONSTRAINT exercise_identifier_check CHECK (valid_url_name(identifier)); 
24
 
ALTER TABLE worksheet ADD CONSTRAINT worksheet_identifier_check CHECK (valid_url_name(identifier)); 
25
 
 
26
 
COMMIT;