* Convert metadata tables to camelCase * datasourcemetadataid to datasourceid * refactor metadata folders * fix command * move commands out of metadata * fix seed * rename objectId and fieldId in objectMetadataId and fieldMetadataId in FE * fix field-metadata * Fix * Fix * remove logs --------- Co-authored-by: Charles Bochet <charles@twenty.com>
33 lines
738 B
TypeScript
33 lines
738 B
TypeScript
import {
|
|
TenantMigrationTableAction,
|
|
TenantMigrationColumnActionType,
|
|
} from 'src/database/typeorm/metadata/entities/tenant-migration.entity';
|
|
|
|
export const addViewTable: TenantMigrationTableAction[] = [
|
|
{
|
|
name: 'view',
|
|
action: 'create',
|
|
},
|
|
{
|
|
name: 'view',
|
|
action: 'alter',
|
|
columns: [
|
|
{
|
|
columnName: 'name',
|
|
columnType: 'varchar',
|
|
action: TenantMigrationColumnActionType.CREATE,
|
|
},
|
|
{
|
|
columnName: 'objectMetadataId',
|
|
columnType: 'varchar',
|
|
action: TenantMigrationColumnActionType.CREATE,
|
|
},
|
|
{
|
|
columnName: 'type',
|
|
columnType: 'varchar',
|
|
action: TenantMigrationColumnActionType.CREATE,
|
|
},
|
|
],
|
|
},
|
|
];
|