Hi,
It's possible to verify if the table exist before execute any request ?
to avoid putting a catch everywhere.
For exemple, in the onConstruct method.
|
Oct '19 |
6 |
311 |
0 |
https://github.com/phalcon/cphalcon/blob/3.4.x/phalcon/db/adapter.zep#L689
Just do:
$tableExists = $this->getDI()->get('db')->tableExists($tableName, $schemaName);
The app is use by 11 companies, with different design, the same "core" but different design. Our provider have created different git repositories. They have 1 script for generate the docker and the app with only variable for the configuration.
Maybe compos is better, but I do not have the knowledge on the subject, I'm not a web developer and I do not have the time to train on it. The fun of work world.