summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlinuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-23 19:44:05 +0000
committerlinuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-23 19:44:05 +0000
commitdac9805b430a476b5539cf1aa8c36716b85cc567 (patch)
tree835ba77e44e492bd6a15bc81ab4d31bff58a3f10
parent5758dbb5fdf8e4428874465fd4c2a777e7c0c815 (diff)
added mailcode to location
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1237 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--sql/Pg-database.sql3
1 files changed, 2 insertions, 1 deletions
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,