Skip to main content

updateTable

plugin.projectStructure.updateTable(packageId: string, tableId: string, updates: Partial<DatabaseTable>, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Update a database table

Parameters

ParameterTypeRequiredDescription
packageIdstringYes
tableIdstringYes
updatesPartial<DatabaseTable>Yes
workspacePathstringNo

Returns

Promise<ProjectStructureUpdateResponse>

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.projectStructure.updateTable('packageId', 'tableId', /* Partial<DatabaseTable> */);
console.log(result);