Add "ID" surrogate key column to "view_access" table
Bug #845948 reported by
Lacey Vickery
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Robert Lyon |
Bug Description
It seems during the installation of Mahara several tables are created without primary keys. This caused a headache for us when restoring tables from a pg_dump script, duplicate records were created. Specifically the table 'blocktype_
artefact_log
view_access
view_visit
blocktype_
Version: 1.4.0
Database: Postgres
OS: Linux/RHEL
Changed in mahara: | |
status: | New → Triaged |
milestone: | none → 1.5.0 |
importance: | Undecided → Medium |
tags: | added: dbschema |
Changed in mahara: | |
assignee: | nobody → Hugh Davenport (hugh-catalyst) |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
milestone: | none → 1.9.0 |
Changed in mahara: | |
milestone: | 16.04.0 → 16.10.0 |
summary: |
- missing primary keys + Add "ID" surrogate key column to "view_access" table |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Technical points:
view_access currently doesn't limit anything at the code level, so the primary key would simply be the entire row. Any thoughts on what to do here?
Same with view_visit (though there are only two fields here)
Review for the other two at /reviews. mahara. org/856
https:/