* Feature: add createCustomField resolver * update mocks * fix import * invalidate workspace datasource cache after migration * fix typo
10 lines
238 B
TypeScript
10 lines
238 B
TypeScript
/**
|
|
* Generate a column name from a field name removing unsupported characters.
|
|
*
|
|
* @param name string
|
|
* @returns string
|
|
*/
|
|
export function generateColumnName(name: string): string {
|
|
return name.toLowerCase().replace(/ /g, '_');
|
|
}
|