mirror of
https://github.com/immich-app/immich.git
synced 2026-03-04 09:57:33 +03:00
feat: naming strategy (#19848)
* feat: naming strategy * feat: detect renames
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { asSnakeCase } from 'src/sql-tools/helpers';
|
||||
import { Processor } from 'src/sql-tools/types';
|
||||
|
||||
export const processTables: Processor = (ctx, items) => {
|
||||
@@ -14,7 +13,7 @@ export const processTables: Processor = (ctx, items) => {
|
||||
|
||||
ctx.addTable(
|
||||
{
|
||||
name: options.name || asSnakeCase(object.name),
|
||||
name: options.name || ctx.getNameFor({ type: 'table', name: object.name }),
|
||||
columns: [],
|
||||
constraints: [],
|
||||
indexes: [],
|
||||
|
||||
Reference in New Issue
Block a user