mirror of
https://github.com/immich-app/immich.git
synced 2026-02-14 12:58:17 +03:00
11 lines
361 B
TypeScript
11 lines
361 B
TypeScript
import { Processor } from 'src/sql-tools/from-code/processors/type';
|
|
import { asSnakeCase } from 'src/sql-tools/helpers';
|
|
|
|
export const processDatabases: Processor = (builder, items) => {
|
|
for (const {
|
|
item: { object, options },
|
|
} of items.filter((item) => item.type === 'database')) {
|
|
builder.name = options.name || asSnakeCase(object.name);
|
|
}
|
|
};
|