copy-table without primary key
copy-table - fix attribute detection