From dac9805b430a476b5539cf1aa8c36716b85cc567 Mon Sep 17 00:00:00 2001 From: linuxpoet Date: Wed, 23 May 2007 19:44:05 +0000 Subject: added mailcode to location git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1237 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/Pg-database.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/Pg-database.sql') diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql index 22e87fca..b9205b37 100644 --- a/sql/Pg-database.sql +++ b/sql/Pg-database.sql @@ -63,7 +63,8 @@ CREATE TABLE location ( line_two text, line_three text, city_province text check (city_province ~ '[[:alnum:]_]') NOT NULL, - country_id integer not null REFERENCES country(id)); + country_id integer not null REFERENCES country(id) + mail_code text not null check (mail_code ~ '[[:alnum:]_]')); CREATE TABLE company ( id serial UNIQUE, -- cgit v1.2.3