feat: sync command missing ability to rename standard object (#4819)
We've introduced in PR #4373 standard ids to be able to rename standard fields and objects. Fields part was working properly, but objects part was not yet implemented. This PR is adding the missing parts to make it work.
This commit is contained in:
@ -80,14 +80,21 @@ export type WorkspaceMigrationColumnAction = {
|
||||
| WorkspaceMigrationCreateComment
|
||||
);
|
||||
|
||||
/**
|
||||
* Enum values are lowercase to avoid issues with already existing enum values
|
||||
*/
|
||||
export enum WorkspaceMigrationTableActionType {
|
||||
CREATE = 'create',
|
||||
ALTER = 'alter',
|
||||
DROP = 'drop',
|
||||
CREATE_FOREIGN_TABLE = 'create_foreign_table',
|
||||
DROP_FOREIGN_TABLE = 'drop_foreign_table'
|
||||
}
|
||||
|
||||
export type WorkspaceMigrationTableAction = {
|
||||
name: string;
|
||||
action:
|
||||
| 'create'
|
||||
| 'alter'
|
||||
| 'drop'
|
||||
| 'create_foreign_table'
|
||||
| 'drop_foreign_table';
|
||||
newName?: string;
|
||||
action: WorkspaceMigrationTableActionType;
|
||||
columns?: WorkspaceMigrationColumnAction[];
|
||||
foreignTable?: WorkspaceMigrationForeignTable;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user