Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

System Update Issue

Questions related to using nuBuilder Forte.
Post Reply
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

System Update Issue

Unread post by alf1976 »

Hi Steven,

I have an a problem with the system update. Whenever i run it it changes the database engine of all my tables from InnoDB back to MyISAM.

I use transaction statements on some of the tables. MyISAM is not a transaction engine.

At them moment i have run an sql statement to generate an ALTER TABLE list to convert them back. I leave all the 'zzzz' systems tables as MyISAM

Is there any reason why it alters the db engine of non system tables?

Andrew
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: System Update Issue

Unread post by admin »

Andrew,

I have put a fix on Github.


Steven
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

Re: System Update Issue

Unread post by alf1976 »

Hi Steven,

I have run a couple of system update off the last couple of fixes and all my tables are still being converted to MyISAM

After each update im having to run

Code: Select all

SELECT  CONCAT('ALTER TABLE `', table_name, '` ENGINE=InnoDB;') AS sql_statements
FROM    information_schema.tables AS tb
WHERE   table_schema = **MY DATABASE NAME**
AND     `ENGINE` = 'MyISAM'
AND     `TABLE_TYPE` = 'BASE TABLE'
AND 	TABLE_NAME NOT LIKE '%zzzz%'
to generate an sql statement to convert them all back




Andrew
Martin
Posts: 30
Joined: Fri Nov 09, 2018 5:42 pm

Re: System Update Issue

Unread post by Martin »

Strange, this shouldn't happen. nuSetCollation included only tables starting with "zzzzsys"

Code: Select all

if(substr($tab, 0, 8) == 'zzzzsys_'){
https://github.com/nuSoftware/nuBuilder ... telibs.php
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

Re: System Update Issue

Unread post by alf1976 »

Hi

I've just down the latest pull from Github and ran the update. It hasn't done it on this pull.

Since Steven's post i havent paid much attention to the table structure and have done multiple updates since, so i'm not completely sure when this has happened.
I will monitor it from now on and if i have any more problems i will let you know

Andrew
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: System Update Issue

Unread post by admin »

.
Post Reply