You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Converted dotProject sites keep dotProject column types, leftover tables and join-table columns without defaults #536
After converting a dotProject database and upgrading it to the current migration, the schema still differs from a fresh install in ways no migration addresses. None of these broke anything in testing, but they are drift that later migrations and code don't expect.
Column types (about 35 columns)
TEXT where a fresh install has MEDIUMTEXT: descriptions and notes on companies, contacts, departments, events, files, file folders, forum messages, history, sysvals, task logs, tasks and users. Long text that fits on a fresh install can be cut off on a converted site.
Shorter columns: config.config_name is VARCHAR(127) (255 fresh) and gacl_phpgacl.name is VARCHAR(127) (230 fresh).
CHAR(100) instead of VARCHAR(100): modules.permissions_item_table/field/label and tasks.task_departments.
Nullability: contacts.contact_company/contact_department and users.user_company/user_department allow NULL (fresh: NOT NULL DEFAULT 0), and custom_fields_struct.field_published is NOT NULL (fresh: NULL allowed).
history.history_id is signed (fresh: unsigned), and billingcode.billingcode_id is BIGINT.
Join-table columns without a default project_contacts, project_departments, task_contacts, task_departments and task_dependencies have their id columns NOT NULL with no default (fresh: DEFAULT 0). The current code always supplies both ids, so inserts work, but an insert that leaves one out fails under strict mode on a converted site only.
Columns: users.user_owner, event_queue.queue_batched, and auto-increment ids on the join tables (project_contact_id, project_department_id, task_contact_id, task_department_id, user_event_id). All have defaults or are auto-increment, so inserts are unaffected.
To decide / fix
Which of these to align in the conversion (dp_to_w2p2) or a later migration, and whether to drop the dotProject-only tables (after checking nothing reads dotpermissions).
How it was found
Converting dotProject 2.0.1, 2.0.4 and 2.1.8 databases (MyISAM and InnoDB) on MySQL 8.0.46 with dev-5.0.0-migration, then comparing every table and column with a fresh install.
Activity