Altering table when table structure is modified