summaryrefslogtreecommitdiff
path: root/sql/Pg-database.sql
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-09 19:31:26 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-09 19:31:26 +0000
commitd949a3c44acb6f4ce7700fbf94b0a3a9eeaaf208 (patch)
tree5f3a0141c1f5b30cea1e3f3af21e4fc72473e6b1 /sql/Pg-database.sql
parent056ec0d1b388e29f5b84629430a64cb7954d97de (diff)
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
Diffstat (limited to 'sql/Pg-database.sql')
-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 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,