From d949a3c44acb6f4ce7700fbf94b0a3a9eeaaf208 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 9 Nov 2007 19:31:26 +0000 Subject: Province (or state) is now distinct from city in terms of db stroage git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1860 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/Pg-database.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql index 2e5252c4..d4f98b54 100644 --- a/sql/Pg-database.sql +++ b/sql/Pg-database.sql @@ -134,7 +134,8 @@ CREATE TABLE location ( line_one text check (line_one ~ '[[:alnum:]_]') NOT NULL, line_two text, line_three text, - city_province text check (city_province ~ '[[:alnum:]_]') NOT NULL, + city text check (city '[[:alnum:]_]') NOT NULL, + province text check(province '[[: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