GetDbTableName returns a name of DB table used for storing schema instances
()
| 323 | |
| 324 | // GetDbTableName returns a name of DB table used for storing schema instances |
| 325 | func (schema *Schema) GetDbTableName() string { |
| 326 | config := util.GetConfig() |
| 327 | if config.GetBool("database/legacy", true) { |
| 328 | return schema.ID + "s" |
| 329 | } |
| 330 | return schema.Plural |
| 331 | } |
| 332 | |
| 333 | // GetParentURL returns Parent URL |
| 334 | func (schema *Schema) GetParentURL() string { |
no test coverage detected