cafffd973f
* Add Relation Metadata * remove logs * fix migrations * add one-to-many relation inside entities * fix relation * use enum for tenant migration column action type
33 lines
721 B
TypeScript
33 lines
721 B
TypeScript
import {
|
|
TenantMigrationColumnActionType,
|
|
TenantMigrationTableAction,
|
|
} from 'src/metadata/tenant-migration/tenant-migration.entity';
|
|
|
|
export const addViewTable: TenantMigrationTableAction[] = [
|
|
{
|
|
name: 'view',
|
|
action: 'create',
|
|
},
|
|
{
|
|
name: 'view',
|
|
action: 'alter',
|
|
columns: [
|
|
{
|
|
columnName: 'name',
|
|
columnType: 'varchar',
|
|
action: TenantMigrationColumnActionType.CREATE,
|
|
},
|
|
{
|
|
columnName: 'objectId',
|
|
columnType: 'varchar',
|
|
action: TenantMigrationColumnActionType.CREATE,
|
|
},
|
|
{
|
|
columnName: 'type',
|
|
columnType: 'varchar',
|
|
action: TenantMigrationColumnActionType.CREATE,
|
|
},
|
|
],
|
|
},
|
|
];
|