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?
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.
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
-
- 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
Also rename the table in this location:
Table: zzzzsys_object
Column: sob_all_table
Table: zzzzsys_object
Column: sob_all_table
Re: New table name not updated in "Add Database Column" during Clone of existing object
Do I need to edit all of the rows (33 rows) where 'pk_location' (old table name) exists?
-
- 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
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%';
Re: New table name not updated in "Add Database Column" during Clone of existing object
Thank you! That worked. Had to first disable 'Safe Updates' (in MySql Workbench).