move alter checks to after table creation