You are not logged in.
This plugin helps you to change the character set in tables, created with MySQL versions older than 4.1, from ‘latin1’ to ‘utf8’ after you’ve upgraded to MySQL 4.1 or higher.
Please read the plugin documentation carefully before using this plugin.
Features:
Changelog:
Last edited by ruud (2007-11-27 22:48:26)
Offline
Ruud
Yet another useful rvm plugin — thank you.
— Steve
Textile | My plugins on GitHub | @netcarver
Offline
hi Ruud,
Thanks for this. At last I’ll be able to upgrade the db charset!
Will this plugin work ok when there are 2 txp installs in the same db?
>Edit. I also have a txp install in the same db with punbb. Would this be a problem?
Last edited by colak (2007-11-26 08:59:31)
neme.org | neme-imca.org | hblack.net | LABS
Offline
The plugin only changes the tables with the same table prefix as the textpattern install where the plugin was installed, so if you have 2 TXP installs in 1 database, you’ll have to install/run the plugin in both TXP installs.
Currently only tables that really belong to TXP are converted (textpattern, txp_page, txp_css etc), so if you have a plugin that creates a table called txp_example, then that table will not be converted automatically.
I’m thinking about also including extra tables with that same TXP table prefix that were added by other plugins, to avoid having to update those manually, but that’s a bit more risky, especially if you didn’t specify a prefix for your textpattern install and there are other, non-TXP related tables in your database.
Offline
ruud wrote:
I’m thinking about also including extra tables with that same TXP table prefix that were added by other plugins, to avoid having to update those manually, but that’s a bit more risky, especially if you didn’t specify a prefix for your textpattern install and there are other, non-TXP related tables in your database.
Complicates the simple; but a list of tables with a “convert this” checkbox next to each one and a Go! button at the foot would allow the user to make the final choice. You could initially check only those tables from the default TXP install — and others using the same prefix (if any).
— Steve
Textile | My plugins on GitHub | @netcarver
Offline
Tables used by plugins should use the same prefix as TXP tables, so in that case I’d probably show all tables that are not normally part of a TXP install (the standard TXP tables should be converted anyway, so there’s no point in showing those) and let the user check them if he’s certain that they belong to the TXP install…. but how many plugins create separate tables that contain UTF-8 data? Is it worth adding this functionality?
Offline
ruud wrote:
Tables used by plugins should use the same prefix as TXP tables, so in that case I’d probably show all tables that are not normally part of a TXP install (the standard TXP tables should be converted anyway, so there’s no point in showing those) …and let the user check them if he’s certain that they belong to the TXP install.
Yes, that would simplify the list — possibly down to nothing in which case you can just go anyway.
… but how many plugins create separate tables that contain UTF-8 data? Is it worth adding this functionality?
I don’t know if it’s worth adding this — like I said earlier, it complicates the simple. Maybe folks just starting off their plugin writing careers might not prefix tables they create (in which case, the plugins probably aren’t going to be adding new tables anyway.)
— Steve
Textile | My plugins on GitHub | @netcarver
Offline
Great!
I used to use this textsnippet to do the job.
A question:
A client’s site is running a TxP 4.0.5 + MLP on a MySQL 4.0.18, so it’s currently running on a latin1 db.
When MySQL gets updated (don’t know when will it happen), I would like to try this plug-in to update the DB.
But, ruud says that this only works over tables that belongs to TxP.
So, what about the MLP? does any table that belongs to MLP also need to be converted? I think translated articles are stored in the standard TxP table, but what about things like snippets?
Thanks!
Offline
@ruud… I just successfully updated hblack.net…Thanks! How do we manually change the tables created by plugins?
I have 2 remaining tables “txp_log_mention” which I’m almost sure I do not use any more and “txp_js” which is created by the “stm_javascript” plugin
Steve wrote
Complicates the simple; but a list of tables with a “convert this” checkbox next to each one and a Go! button at the foot would allow the user to make the final choice. You could initially check only those tables from the default TXP install – and others using the same prefix (if any).
Great idea!
neme.org | neme-imca.org | hblack.net | LABS
Offline
maniqui wrote:
A client’s site is running a TxP 4.0.5 + MLP on a MySQL 4.0.18, so it’s currently running on a latin1 db.
When MySQL gets updated (don’t know when will it happen), I would like to try this plug-in to update the DB.
But, ruud says that this only works over tables that belongs to TxP.
So, what about the MLP? does any table that belongs to MLP also need to be converted?
Yes, the ‘l10n_’ tables would need to be converted too. If your installation is using a table prefix, then that will be taken care of by ruud’s idea of converting all tables which match the Txp table prefix. However, you could use your script method for those.
I think translated articles are stored in the standard TxP table, but what about things like snippets?
Snippets are all stored in the existing txp_lang table so they will be taken care of by ruud’s plugin anyway.
BTW: Latest MLP doesn’t allow installation attempts on MySQL pre-version 4.1.
Ruud
So there is some need for Txp plugins’ table conversions after all — and from my own work! (Dusts off hat in preparation for a meal.) But does that present enough demand to implement the UI for this?
— Steve
Textile | My plugins on GitHub | @netcarver
Offline