aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-04 11:11:38 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-04 11:11:38 +0000
commit9b67d16e31922981124b910602d0e2ff1d07cfdc (patch)
tree9f1ff70d8156d493e2308f1ef8471850f91ba133
parent770ffd1d8fb1f023e78df876a29dc36022246692 (diff)
drop column is_confirmed - not needed
-rw-r--r--db/schema_0001.sql3
-rw-r--r--perllib/FixMyStreet/DB/Result/User.pm9
2 files changed, 4 insertions, 8 deletions
diff --git a/db/schema_0001.sql b/db/schema_0001.sql
index 918fdcbc5..ad95f556f 100644
--- a/db/schema_0001.sql
+++ b/db/schema_0001.sql
@@ -14,8 +14,7 @@ create table users (
id serial not null primary key,
email text not null unique,
name text,
- password text,
- is_confirmed bool not null default false
+ password text not null default ''
);
-- add PK to contacts table
diff --git a/perllib/FixMyStreet/DB/Result/User.pm b/perllib/FixMyStreet/DB/Result/User.pm
index d88de5e7d..bfc82925d 100644
--- a/perllib/FixMyStreet/DB/Result/User.pm
+++ b/perllib/FixMyStreet/DB/Result/User.pm
@@ -22,15 +22,12 @@ __PACKAGE__->add_columns(
"name",
{ data_type => "text", is_nullable => 1 },
"password",
- { data_type => "text", is_nullable => 1 },
- "is_confirmed",
- { data_type => "boolean", default_value => \"false", is_nullable => 0 },
+ { data_type => "text", default_value => "", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint( "users_email_key", ["email"] );
-# Created by DBIx::Class::Schema::Loader v0.07009 @ 2011-03-03 10:05:03
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4dpBN1I88nB1BYtHT/AfKA
-
+# Created by DBIx::Class::Schema::Loader v0.07009 @ 2011-03-04 11:10:43
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G+Jp+96IJFF5o2zR7vi/CQ
1;