Changes table type