dbDelta relies on SHOW TABLES; so it will not work with any sharded DB structures. For situations where dbDElta is used you need to write your own scripts to perform the SQL commands on the appropriate databases.
Thread Starter
meglio
(@meglio)
So it means that dbDelta will work well only in situations when additional plugin tables do not depend on blog id – because it will always run on the main database. Right?
because it will always run on the main database. Right?
You can’t rely on the last selected database being the global one.
Thread Starter
meglio
(@meglio)
Do you happen to have any solution that you can share?
Do you happen to have any solution that you can share?
I did above:
For situations where dbDelta is used you need to write your own scripts to perform the SQL commands on the appropriate databases.
For example: http://wpmututorials.com/news/mu-2-9-beta/