fix alter table on partitioned tables