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.

New table name not updated in "Add Database Column" during Clone of existing object Topic is solved

Questions related to installing, updating, setting up and configuring
Post Reply
Paul
Posts: 39
Joined: Mon Aug 25, 2025 6:03 am
Has thanked: 10 times
Been thanked: 1 time

New table name not updated in "Add Database Column" during Clone of existing object

Post by Paul »

I have changed the name of one of my tables in nubuilder and thought I have changed everything else I needed to in order to make everything work properly, but apparently I have missed something. When I try to add a new column from the "Add database column" button (while cloning an existing object), it displays the "Add Database Column" window, but the ALTER TABLE statement includes the OLD table name, rather than the new one.

What have I missed?
Last edited by Paul on Mon Sep 22, 2025 7:11 pm, edited 1 time in total.
kev1n
nuBuilder Team
Posts: 4497
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 75 times
Been thanked: 511 times
Contact:

Re: New table name not updated in "Add Database Column" during Clone of existing object

Post by kev1n »

Also rename the table in this location:

Table: zzzzsys_object
Column: sob_all_table
Paul
Posts: 39
Joined: Mon Aug 25, 2025 6:03 am
Has thanked: 10 times
Been thanked: 1 time

Re: New table name not updated in "Add Database Column" during Clone of existing object

Post by Paul »

Do I need to edit all of the rows (33 rows) where 'pk_location' (old table name) exists?
kev1n
nuBuilder Team
Posts: 4497
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 75 times
Been thanked: 511 times
Contact:

Re: New table name not updated in "Add Database Column" during Clone of existing object

Post by kev1n »

Yes - you can replace them with an SQL Update:

Code: Select all

UPDATE zzzzsys_object
SET sob_all_table = REPLACE(sob_all_table, 'old_table_name', 'new_table_name')
WHERE sob_all_table LIKE '%old_table_name%';
Paul
Posts: 39
Joined: Mon Aug 25, 2025 6:03 am
Has thanked: 10 times
Been thanked: 1 time

Re: New table name not updated in "Add Database Column" during Clone of existing object

Post by Paul »

Thank you! That worked. Had to first disable 'Safe Updates' (in MySql Workbench).
Post Reply