Support for 5.x-1.0 to 6.x-1.x updating
tuffnatty - September 15, 2008 - 19:06
| Project: | abuse |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
This function added to abuse.install works for me:
<?php
function abuse_update_6100() {
$schema = abuse_schema();
db_add_field($ret, 'abuse_status', 'assigned_to_uid', $schema['abuse_status']['fields']['assigned_to_uid']);
db_add_field($ret, 'abuse_warnings', 'sent_by_uid', $schema['abuse_warnings']['fields']['sent_by_uid']);
db_create_table($ret, 'abuse_status_log', $schema['abuse_status_log']);
return $ret;
}
?>
#1
Thanks for planning out this update.
There were some other changes I had also made - one specifically being that the object ids (oid) being autoincrementing IDs...I need to figure out the full list of changes in the schema so I can get it.
Thanks for taking this initiative.
#2
Just dropping by to say that after a 5.x->6.x upgrade, the abuse module was throwing SQL errors (because of no table upgrade path).
Applied this patch and reran upgrade and fixed all the SQL errors that I saw (basic functionality).
If I run into any more errors, I'll post back with a patch, but including this as a start seems like a good idea: it will take care of the base 5.x -> 6.x upgrade. As far as I can tell.