https://bugzilla.wikimedia.org/show_bug.cgi?id=33638

Sam Reed (reedy) <s...@reedyboy.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easy

--- Comment #6 from Sam Reed (reedy) <s...@reedyboy.net> ---
(In reply to comment #5)
> DatabaseUpdater.php
> This file is not sufficient I think.There has to be some other way.
> Can anyone help me for fixing this?

What? That's how you need to do it; this is pretty simple to fix.

Math already has a database update hook in place:
$wgHooks['LoadExtensionSchemaUpdates'][] =
'MathHooks::onLoadExtensionSchemaUpdates';

So then you only need to create a .sql file with the addition of the primary
key, add it to git, and in the same revision edit Math.hooks.php and add a line
to make the new sql file be processed to add the new column.

Then also update the other base sql files to add the new column when creating
the table initially

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to