aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-02 12:30:43 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-02 12:30:43 +0000
commitc5a4a6e496f4aebd496336c44a61c0b1c64dfccd (patch)
tree818493f83d1a7f36a885ae3b0ac260bd55eead5d
parentabf30bbf21ae1a51005bc81456ebd3e89fe98048 (diff)
Passwords can be null
-rw-r--r--db/schema_0001.sql2
-rw-r--r--perllib/FixMyStreet/DB/Result/User.pm6
2 files changed, 4 insertions, 4 deletions
diff --git a/db/schema_0001.sql b/db/schema_0001.sql
index 88bed06c6..1c2bf4ffc 100644
--- a/db/schema_0001.sql
+++ b/db/schema_0001.sql
@@ -14,7 +14,7 @@ create table users (
id serial not null primary key,
email text not null unique,
name text,
- password text not null
+ password text,
);
-- add PK to contacts table
diff --git a/perllib/FixMyStreet/DB/Result/User.pm b/perllib/FixMyStreet/DB/Result/User.pm
index 86e35b675..1ba2f094a 100644
--- a/perllib/FixMyStreet/DB/Result/User.pm
+++ b/perllib/FixMyStreet/DB/Result/User.pm
@@ -22,13 +22,13 @@ __PACKAGE__->add_columns(
"name",
{ data_type => "text", is_nullable => 1 },
"password",
- { data_type => "text", is_nullable => 0 },
+ { data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint( "users_email_key", ["email"] );
-# Created by DBIx::Class::Schema::Loader v0.07009 @ 2011-03-01 15:43:43
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KZssayknEGFoV7seVdHp+w
+# Created by DBIx::Class::Schema::Loader v0.07009 @ 2011-03-02 12:20:05
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M8SDJhpzhBZJmhar+MGQhQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;