Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Adobe Campaign Classic - Dropping a column

ankurm40172185
Level 3
Level 3

Hi

Are there any guidelines to follow if i want to drop a column in a custom table; or do we modify the xml and then propogate changes to the database and that is enough? What is the best way, or is there a best way?

I do not see anything on the campaign documentation on dropping columns.

1 Accepted Solution
Jean-Serge_Biro
Correct answer by
Community Advisor
Community Advisor

Hi Ankurm,

If your schema leads the underlying SQL structure, yes, you can delete the element/attribute corresponding to the column in the schema, then propagate the change with Tools/Advanced/Update database structure:
Updating the database structure

But if you do the invert thing, that means, if the mapping is SQL-directed, you delete the column in the database engine, then you must use the other advanced tool Extend database to apply the change in your schema, or most often, do it manually (often easier if change is quite simple).

Please take care, because there could be indexes, or relationships based on the column to be deleted. And of course, data to be saved through a table backup is often a good recommendation.

Regards.
J-Serge

View solution in original post

2 Replies
Jean-Serge_Biro
Correct answer by
Community Advisor
Community Advisor

Hi Ankurm,

If your schema leads the underlying SQL structure, yes, you can delete the element/attribute corresponding to the column in the schema, then propagate the change with Tools/Advanced/Update database structure:
Updating the database structure

But if you do the invert thing, that means, if the mapping is SQL-directed, you delete the column in the database engine, then you must use the other advanced tool Extend database to apply the change in your schema, or most often, do it manually (often easier if change is quite simple).

Please take care, because there could be indexes, or relationships based on the column to be deleted. And of course, data to be saved through a table backup is often a good recommendation.

Regards.
J-Serge

View solution in original post

ankurm40172185
Level 3
Level 3

Thanks Jean; I am glad that we did the right thing then. Its always a little worry if we are dropping things and not cleaning up properly.