diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-09 19:31:26 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-09 19:31:26 +0000 |
commit | d949a3c44acb6f4ce7700fbf94b0a3a9eeaaf208 (patch) | |
tree | 5f3a0141c1f5b30cea1e3f3af21e4fc72473e6b1 /sql | |
parent | 056ec0d1b388e29f5b84629430a64cb7954d97de (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')
-rw-r--r-- | sql/Pg-database.sql | 3 |
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, |