appbuild-oceanbase-console 1.10.2 → 1.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sdk.js +358 -169
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +358 -169
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +358 -169
- package/package.json +1 -1
- package/types/migrations.d.ts +35 -0
- package/dist/cjs/package.json +0 -3
- package/dist/esm/package.json +0 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "appbuild-oceanbase-console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.4",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/types/migrations.d.ts
CHANGED
|
@@ -102,6 +102,15 @@ export interface MigrationOperation {
|
|
|
102
102
|
indexKey?: string;
|
|
103
103
|
reason?: string;
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Information about skipped built-in items
|
|
107
|
+
*/
|
|
108
|
+
export interface SkippedBuiltIn {
|
|
109
|
+
collectionId: string;
|
|
110
|
+
key: string;
|
|
111
|
+
type: 'attribute' | 'index';
|
|
112
|
+
reason: string;
|
|
113
|
+
}
|
|
105
114
|
export interface MigrationPlan {
|
|
106
115
|
operations: MigrationOperation[];
|
|
107
116
|
summary: {
|
|
@@ -114,6 +123,11 @@ export interface MigrationPlan {
|
|
|
114
123
|
indexesToCreate: number;
|
|
115
124
|
indexesToDelete: number;
|
|
116
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* List of built-in attributes and indexes that were skipped
|
|
128
|
+
* Built-in items are those starting with '$' prefix (e.g., $id, $createdAt, $updatedAt)
|
|
129
|
+
*/
|
|
130
|
+
skippedBuiltIns: SkippedBuiltIn[];
|
|
117
131
|
}
|
|
118
132
|
/**
|
|
119
133
|
* Database Schema Migration Tool
|
|
@@ -126,6 +140,27 @@ export interface MigrationPlan {
|
|
|
126
140
|
export declare class SchemaMigration {
|
|
127
141
|
private databases;
|
|
128
142
|
constructor(databases: TablesDB);
|
|
143
|
+
/**
|
|
144
|
+
* Get default permissions for collections (read, create, update, delete all set to 'any')
|
|
145
|
+
*/
|
|
146
|
+
private getDefaultPermissions;
|
|
147
|
+
/**
|
|
148
|
+
* Check if an attribute key is a built-in field that cannot be modified
|
|
149
|
+
* Built-in fields include:
|
|
150
|
+
* - Fields starting with '$' prefix (e.g., $id, $createdAt, $updatedAt)
|
|
151
|
+
* - Legacy field names: id, createdAt, updatedAt
|
|
152
|
+
*/
|
|
153
|
+
private isBuiltInAttribute;
|
|
154
|
+
/**
|
|
155
|
+
* Check if an index key is a built-in index that cannot be modified
|
|
156
|
+
* Built-in indexes start with '$' prefix
|
|
157
|
+
*/
|
|
158
|
+
private isBuiltInIndex;
|
|
159
|
+
/**
|
|
160
|
+
* Check if an index contains any built-in attributes
|
|
161
|
+
* Built-in fields cannot have indexes created or deleted
|
|
162
|
+
*/
|
|
163
|
+
private indexContainsBuiltInAttributes;
|
|
129
164
|
/**
|
|
130
165
|
* Generate migration plan by comparing current database state with target schema
|
|
131
166
|
*/
|
package/dist/cjs/package.json
DELETED
package/dist/esm/package.json
DELETED