From aa669cac70369aa86ac87165b455b7afdb618a39 Mon Sep 17 00:00:00 2001 From: linuxpoet Date: Fri, 16 Nov 2007 00:38:52 +0000 Subject: 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 --- sql/Pg-database.sql | 4 ++-- 1 file 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, -- cgit v1.2.3