Hi!
I need to have different database table names for entities. For example:
I have entity Order. The table in mysql is named 'order'. But i need to change the name of db table for example to 'order_list'.
Where can i edit creating and reading table names?
I've been searching that for hours, i found that in application/Espo/Core/Utils/Database/Schema/Converter.php I can set $tableName to something and that creates the tables name in DB. But thats not enough, because, when i load the page in CRM with this entity, it says Error 500 ERROR: (42S02) SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blahblahblah' doesn't exist.
Please help me! I love this system so much, I'm learning it, but i cant figure that out. Thank you!
I need to have different database table names for entities. For example:
I have entity Order. The table in mysql is named 'order'. But i need to change the name of db table for example to 'order_list'.
Where can i edit creating and reading table names?
I've been searching that for hours, i found that in application/Espo/Core/Utils/Database/Schema/Converter.php I can set $tableName to something and that creates the tables name in DB. But thats not enough, because, when i load the page in CRM with this entity, it says Error 500 ERROR: (42S02) SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blahblahblah' doesn't exist.
Please help me! I love this system so much, I'm learning it, but i cant figure that out. Thank you!
Comment