you must disable constrainsexport the data of all relative tables in INSERT statements from source or all the tables with drop option and create optiongo to the destination databaserun the script thatDrop the relative tablesCreate and populate themenable constraints.