diff options
author | linuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-16 00:38:52 +0000 |
---|---|---|
committer | linuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-16 00:38:52 +0000 |
commit | aa669cac70369aa86ac87165b455b7afdb618a39 (patch) | |
tree | 9f719bcddfa3978faea9c33a24bdc3f2a41da7cb | |
parent | d340ccd5ecbb731c273a07876ad0dfc0a9b33379 (diff) |
fix the location table... I would like to know who thought check (foo 'regex' NOT NULL) was going to work...
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1870 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | sql/Pg-database.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql index 851995b2..27c61a4e 100644 --- a/sql/Pg-database.sql +++ b/sql/Pg-database.sql @@ -134,8 +134,8 @@ CREATE TABLE location ( line_one text check (line_one ~ '[[:alnum:]_]') NOT NULL, line_two text, line_three text, - city text check (city '[[:alnum:]_]') NOT NULL, - state text check(state '[[:alnum:]_]' NOT NULL), + city text check (city ~ '[[:alnum:]_]') NOT NULL, + state text check(state ~ '[[:alnum:]_]') NOT NULL, country_id integer not null REFERENCES country(id), mail_code text not null check (mail_code ~ '[[:alnum:]_]'), created date not null, |