summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/Pg-database.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql
index 851995b2..27c61a4e 100644
--- a/sql/Pg-database.sql
+++ b/sql/Pg-database.sql
@@ -134,8 +134,8 @@ CREATE TABLE location (
line_one text check (line_one ~ '[[:alnum:]_]') NOT NULL,
line_two text,
line_three text,
- city text check (city '[[:alnum:]_]') NOT NULL,
- state text check(state '[[:alnum:]_]' NOT NULL),
+ city text check (city ~ '[[:alnum:]_]') NOT NULL,
+ state text check(state ~ '[[:alnum:]_]') NOT NULL,
country_id integer not null REFERENCES country(id),
mail_code text not null check (mail_code ~ '[[:alnum:]_]'),
created date not null,