Standard migration command (#2236)

* Add Standard Object migration commands

* rebase

* add sync-tenant-metadata command

* fix naming

* renaming command class names

* remove field deletion and use object cascade instead

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
Weiko
2023-10-27 18:08:59 +02:00
committed by GitHub
parent e488a87ce4
commit acbcd2f162
18 changed files with 385 additions and 12 deletions

View File

@ -0,0 +1,59 @@
import { TenantMigrationTableAction } from 'src/metadata/tenant-migration/tenant-migration.entity';
export const addPeopleTable: TenantMigrationTableAction[] = [
{
name: 'people',
action: 'create',
},
{
name: 'people',
action: 'alter',
columns: [
{
name: 'firstName',
type: 'varchar',
action: 'create',
},
{
name: 'lastName',
type: 'varchar',
action: 'create',
},
{
name: 'email',
type: 'varchar',
action: 'create',
},
{
name: 'phone',
type: 'varchar',
action: 'create',
},
{
name: 'city',
type: 'varchar',
action: 'create',
},
{
name: 'jobTitle',
type: 'varchar',
action: 'create',
},
{
name: 'linkedinUrl',
type: 'varchar',
action: 'create',
},
{
name: 'xUrl',
type: 'varchar',
action: 'create',
},
{
name: 'avatarUrl',
type: 'varchar',
action: 'create',
},
],
},
];