Transfering module to new SuiteCRM project

Good day. Is there any way to transfer your custom module to a new SuiteCRM project? I tried publishing from module builder but it only exports fields created from module builder. Most of my fields were made via Studio. Is there anyway to transfer it? Like transferring folders? What folders do I need to copy? Please help.

Copy your custom/Extension/modules//Ext/Vardefs folder.

Hello,

Above is partially correct. You also need to copy Langauge file also at same folder.

For custom field, you need to take a field definition copy from a database table fields_meta_data

If you have created a relationship,
then you also need to copy the opposite side’s module

  1. custom/Extension/modules//Ext/Vardefs that are related to your module.
  2. custom/Extension/modules//Ext/Language that are related to your module.
  3. custom/metadata/
  4. custom/Extension/application/Ext/TableDictionary/

Once you place all these files. You need to do a quick repair.