How to create a custom database table in v6.5CE

How can I create a custom database table using a code and have it upgrade friendly?

I don’t want to create a new module just for this since it will just store data that is generated automatically.

Thank you.

There is no SuiteCRM v6.5CE, you probably mean SugarCRM… so you’re in the wrong forums.

By the way, 2018 is not a good year to start using such an old system…