How to copy objects from a model to script file/server using Navicat Data Modeler? (mac)With Navicat Data Modeler, you can synchronize tables and views from a physical model to a database or export them to a script file. In this tutorial, we will show you both ways to transfer model objects. Assume we have imported some tables and views from a PostgreSQL schema into a physical model, made a few changes and added a new table. Then we will transfer the model into a MySQL database. To change server type of a model, select "Model Conversion" from the "File" menu and choose the desired database type and version. Navicat Data Modeler will convert fields to relevant field types, according to the server type. You may need to change the SQL syntax of the views after the conversion. Now, in the new model, select "Synchronize to Database" from the "File" menu. You can choose to synchronize with selected schema or synchronize with selected objects. If we did not set "Schema" properties for new tables, Navicat Data Modeler prompts a text box to enter a schema name for them. The tree view shows the differences between source and target objects after the comparison of their structures, while providing detailed SQL statements. Click "Run" button to execute selected queries in the target database. On the other hand, select "Export SQL" from the "File" menu if you want to save objects in the model into a script file. You can also choose the exported server version of the file.