aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema.sql
Commit message (Collapse)AuthorAgeLines
* Prerequisites (new modules, db, config).Matthew Somerville2016-01-22-1/+3
|
* Add "time spent" admin logging.Hakim Cassimally2015-10-06-1/+2
| | | | | | | | | | | | | | | | | | | | | Mechanism is general, but current implementation only used for Zurich. - Zurich: Record time_spent field mysociety/FixMyStreet-Commercial#676 - template changes (including jQuery spinner) - backend changes to save data are made: - in log_edit, if supplied - and time on category change (and arbitrary actions) - Add update_admin_log to all paths for DM, ensuring that it gets called, while resetting the `time_spent` parameter, to make sure that there is never a duplicate record created. - Also quell warning about using DateTime values in query. - Also add (seemingly unrelated) parens to stop misparsing of OK line in questionnaire test now that DT::Format::Pg is used in Zurich cobrand See mysociety/FixMyStreet-Commercial#676
* [Zurich] Response templates for report admin.Hakim Cassimally2015-10-06-0/+9
| | | | | | | This provides a ResponseTemplate model that an admin/staff user can choose from when responding to problems. For mysociety/FixMyStreet-Commercial#671.
* Allow underscore in cobrand name/data in database.Matthew Somerville2015-09-29-6/+6
|
* Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-0/+1
| | | | | | | Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code.
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-0/+1
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-29/+8
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Improve stored procedure performance.Matthew Somerville2015-08-10-17/+11
| | | | | Add an index on the radian values, make the function stable, and switch to a full bounding box rather than a slower angle check.
* Report moderationHakim Cassimally2014-08-13-1/+31
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+1
|\ | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * Add `external_url' column to `body' table.Jon Kristensen2014-03-11-0/+1
| |
* | remove action check on admin_logHakim Cassimally2013-12-09-4/+1
| | | | | | | | to allow a wider range of action logging.
* | [Zurich] Update schema.sql with body.deleted columnChris Mytton2013-09-10-1/+2
|/
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-73/+51
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Allow bodies to have parent bodies.Matthew Somerville2012-12-19-0/+1
| |
| * Rejig schema.sql to prevent circular references.Matthew Somerville2012-12-19-40/+43
| |
| * Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-1/+6
| | | | | | | | than one body.
| * Make from_body a foreign key.Matthew Somerville2012-12-15-1/+1
| |
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-2/+2
| |
| * Convert report sending code to use bodies rather than areas/councils.Matthew Somerville2012-12-15-0/+1
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-19/+5
| | | | | | | | Add foreign key constraint from contacts to body.
| * Rename from_council to from_body, and small related changes.Matthew Somerville2012-12-15-19/+1
| |
| * Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-3/+3
| |
* | add internal review status to problemsStruan Donald2013-01-17-0/+2
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-1/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-comments conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/Open311.pm t/app/controller/report_updates.t t/open311.t templates/web/default/report/display.html templates/web/default/report/updates.html templates/web/fixmystreet/report/display.html
| * | order of conditions in constraints need to match exactly to make deployment ↵Struan Donald2012-10-03-2/+2
| | | | | | | | | | | | schema test pass
| * | add send_extended_statuses conf option and use in send-commentsStruan Donald2012-10-03-1/+2
| | |
| * | tidy up status names in DB, improve tests a littleStruan Donald2012-10-01-2/+2
| | |
| * | initial work to handle changed problem statesStruan Donald2012-08-31-0/+8
| | |
* | | add subcategory field to problem tableStruan Donald2012-12-03-1/+4
| |/ |/|
* | Allow external_body optionally to be a lookup on /reports.Matthew Somerville2012-11-22-0/+1
| |
* | set interest_count default to 0 as null + 1 = null in postgres :(Struan Donald2012-10-09-1/+1
| | | | | | | | tests for the ui for interest_count as well
* | Missing commas due to merge.Matthew Somerville2012-10-04-2/+2
| |
* | Merge branch 'fmb-read-only'Dave Whiteland2012-10-03-1/+15
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: db/schema.sql perllib/FixMyStreet/DB/Result/Contact.pm perllib/FixMyStreet/DB/Result/Problem.pm
| * | correct syntax error in schemaStruan Donald2012-09-26-1/+1
| | |
| * | allow endpoints to be configured at a category levelStruan Donald2012-08-29-1/+8
| | | | | | | | | | | | | | | default cobrand now checks for endpoint configuration and only extra fallbacks are in UK cobrand
| * | initial crude add support option for a problemStruan Donald2012-08-23-1/+4
| | |
| * | add in external_source and external_source_id to schemaStruan Donald2012-07-12-1/+5
| |/
* / add non-public fields to contacts and problemStruan Donald2012-08-31-2/+8
|/
* Merge branch 'master' into bromleyMatthew Somerville2012-05-16-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-reports conf/crontab.ugly conf/general.yml-example db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/DB/Result/Comment.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/Result/User.pm templates/web/default/js/validation_strings.html templates/web/fixmystreet/auth/sign_out.html templates/web/fixmystreet/report/new/councils_text_all.html web/cobrands/fixmystreet/_base.scss
| * added can_display_external_id because external ids are not always useful for ↵Dave Whiteland2012-05-03-1/+4
| | | | | | | | publishing, using send_method_used to determine that on a council-by-council basis
| * added retry cutoff and send_fail data to problem table for webservice ↵Dave Whiteland2012-03-23-1/+6
| | | | | | | | send-reports
| * now using open311config all send-reports webservices, not just open311Dave Whiteland2012-03-23-1/+2
| |
* | add ability to suppress alerts to report creator onStruan Donald2012-05-11-1/+2
| | | | | | | | comments updated from open311
* | store title in users table so we can persist it for bromleyStruan Donald2012-05-01-1/+2
| |
* | associated a comment user with a council configStruan Donald2012-03-26-1/+2
| |
* | DB changes for comment sendingStruan Donald2012-03-26-2/+7
| |
* | forgot to add extra column into schema fileStruan Donald2012-03-23-1/+2
| |
* | add in retry count codeStruan Donald2012-03-22-1/+6
| |
* | add in send method codeStruan Donald2012-03-22-1/+2
| |