* feat: rename tenant into workspace * fix: missing some files and reset not working * fix: wrong import * Use link in company seeds * Use link in company seeds --------- Co-authored-by: Charles Bochet <charles@twenty.com>
26 lines
690 B
TypeScript
26 lines
690 B
TypeScript
import {
|
|
WorkspaceMigrationColumnActionType,
|
|
WorkspaceMigrationTableAction,
|
|
} from 'src/metadata/workspace-migration/workspace-migration.entity';
|
|
|
|
export const addCommentRelations: WorkspaceMigrationTableAction[] = [
|
|
{
|
|
name: 'comment',
|
|
action: 'alter',
|
|
columns: [
|
|
{
|
|
columnName: 'authorId',
|
|
referencedTableName: 'workspaceMember',
|
|
referencedTableColumnName: 'id',
|
|
action: WorkspaceMigrationColumnActionType.RELATION,
|
|
},
|
|
{
|
|
columnName: 'activityId',
|
|
referencedTableName: 'activity',
|
|
referencedTableColumnName: 'id',
|
|
action: WorkspaceMigrationColumnActionType.RELATION,
|
|
},
|
|
],
|
|
},
|
|
];
|