In current form, indices are being created based on Plural parameter, which is different than expected behaviour. This PR makes changes, so that database table name is used. This is accomplished by using GetDbTableName() function instead of the aforementioned Plural parameter.
For example, when using a schema:
id: puppy
plural: puppies
(...)
we expect database name to be puppys, not puppies.
Hence the proper index creation command should look like this:
CREATE INDEX puppys_name_idx ON `puppys`(`name`);
but in current version it looks like this:
CREATE INDEX puppies_name_idx ON `puppies`(`name`);.
In current form, indices are being created based on
Plural
parameter, which is different than expected behaviour. This PR makes changes, so that database table name is used. This is accomplished by usingGetDbTableName()
function instead of the aforementionedPlural
parameter.For example, when using a schema:
we expect database name to be
puppys
, notpuppies
.Hence the proper index creation command should look like this:
CREATE INDEX puppys_name_idx ON `puppys`(`name`);
but in current version it looks like this:CREATE INDEX puppies_name_idx ON `puppies`(`name`);
.