Page 1 of 1

Does Mantis use an ORM?

Posted: 24 Jun 2016, 16:16
by kismert
Hello, all:

Looking at the Mantis install script for SQL Server, it looks like base tables are created in their original form, then are modified as the script goes on (columns added/dropped, indexes added/dropped).

Is this because Mantis is based on an ORM? If so, which does it use?

Why not just make a create script that makes all of the tables in their current form? You can then diff the database from that point on for upgrades.

Thanks,

-Ken

Re: Does Mantis us an ORM?

Posted: 24 Jun 2016, 16:55
by atrol
kismert wrote:Is this because Mantis is based on an ORM?
No
kismert wrote:You can then diff the database from that point on for upgrades.
This is exactly what we do.
There is just one set of sql-scripts and php-scripts which are used for new installations and for all upgrade installations since version 1.0.