diff options
-rw-r--r-- | db/schema.sql | 3 | ||||
-rw-r--r-- | db/schema_0009_add_gecode_column_to_problem.sql | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/db/schema.sql b/db/schema.sql index 99cf2832d..c0f225aa1 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -184,7 +184,8 @@ create table problem ( lastupdate timestamp not null default ms_current_timestamp(), whensent timestamp, send_questionnaire boolean not null default 't', - flagged boolean not null default 'f' + flagged boolean not null default 'f', + geocode bytea ); create index problem_state_latitude_longitude_idx on problem(state, latitude, longitude); create index problem_user_id_idx on problem ( user_id ); diff --git a/db/schema_0009_add_gecode_column_to_problem.sql b/db/schema_0009_add_gecode_column_to_problem.sql index bda338ddd..730212ead 100644 --- a/db/schema_0009_add_gecode_column_to_problem.sql +++ b/db/schema_0009_add_gecode_column_to_problem.sql @@ -2,6 +2,6 @@ begin; ALTER table problem - ADD column geocode TEXT; + ADD column geocode BYTEA; commit; diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 8d8665258..abe781c92 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -83,7 +83,7 @@ __PACKAGE__->add_columns( "flagged", { data_type => "boolean", default_value => \"false", is_nullable => 0 }, "geocode", - { data_type => "text", is_nullable => 1 }, + { data_type => "bytea", is_nullable => 1 }, ); __PACKAGE__->set_primary_key("id"); __PACKAGE__->has_many( @@ -106,8 +106,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-09-09 10:22:40 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T+EtKT6/8cqMXmd/WzY4CA +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-09-19 14:38:43 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nq8Ufn/SEoDGSrrGlHIxag # Add fake relationship to stored procedure table __PACKAGE__->has_one( |