diff --git a/examples/1.8.x/console-web/examples/databases/create-collection.md b/examples/1.8.x/console-web/examples/databases/create-collection.md index 3cfc945d..b018ddfb 100644 --- a/examples/1.8.x/console-web/examples/databases/create-collection.md +++ b/examples/1.8.x/console-web/examples/databases/create-collection.md @@ -13,9 +13,7 @@ const result = await databases.createCollection({ name: '', permissions: [Permission.read(Role.any())], // optional documentSecurity: false, // optional - enabled: false, // optional - attributes: [], // optional - indexes: [] // optional + enabled: false // optional }); console.log(result); diff --git a/examples/1.8.x/console-web/examples/tablesdb/create-table.md b/examples/1.8.x/console-web/examples/tablesdb/create-table.md index 78fde6c6..33c40763 100644 --- a/examples/1.8.x/console-web/examples/tablesdb/create-table.md +++ b/examples/1.8.x/console-web/examples/tablesdb/create-table.md @@ -13,9 +13,7 @@ const result = await tablesDB.createTable({ name: '', permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional - enabled: false, // optional - columns: [], // optional - indexes: [] // optional + enabled: false // optional }); console.log(result); diff --git a/examples/1.8.x/server-dart/examples/databases/create-collection.md b/examples/1.8.x/server-dart/examples/databases/create-collection.md index f0c3aea5..22f11319 100644 --- a/examples/1.8.x/server-dart/examples/databases/create-collection.md +++ b/examples/1.8.x/server-dart/examples/databases/create-collection.md @@ -17,7 +17,5 @@ Collection result = await databases.createCollection( permissions: [Permission.read(Role.any())], // (optional) documentSecurity: false, // (optional) enabled: false, // (optional) - attributes: [], // (optional) - indexes: [], // (optional) ); ``` diff --git a/examples/1.8.x/server-dart/examples/tablesdb/create-table.md b/examples/1.8.x/server-dart/examples/tablesdb/create-table.md index e4563135..17525b28 100644 --- a/examples/1.8.x/server-dart/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-dart/examples/tablesdb/create-table.md @@ -17,7 +17,5 @@ Table result = await tablesDB.createTable( permissions: [Permission.read(Role.any())], // (optional) rowSecurity: false, // (optional) enabled: false, // (optional) - columns: [], // (optional) - indexes: [], // (optional) ); ``` diff --git a/examples/1.8.x/server-dotnet/examples/databases/create-collection.md b/examples/1.8.x/server-dotnet/examples/databases/create-collection.md index 51398280..b835ad36 100644 --- a/examples/1.8.x/server-dotnet/examples/databases/create-collection.md +++ b/examples/1.8.x/server-dotnet/examples/databases/create-collection.md @@ -16,7 +16,5 @@ Collection result = await databases.CreateCollection( name: "", permissions: new List { Permission.Read(Role.Any()) }, // optional documentSecurity: false, // optional - enabled: false, // optional - attributes: new List(), // optional - indexes: new List() // optional + enabled: false // optional );``` diff --git a/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md b/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md index 242456de..f80746be 100644 --- a/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md @@ -16,7 +16,5 @@ Table result = await tablesDB.CreateTable( name: "", permissions: new List { Permission.Read(Role.Any()) }, // optional rowSecurity: false, // optional - enabled: false, // optional - columns: new List(), // optional - indexes: new List() // optional + enabled: false // optional );``` diff --git a/examples/1.8.x/server-go/examples/databases/create-collection.md b/examples/1.8.x/server-go/examples/databases/create-collection.md index 100ba24e..bd1ff8c5 100644 --- a/examples/1.8.x/server-go/examples/databases/create-collection.md +++ b/examples/1.8.x/server-go/examples/databases/create-collection.md @@ -22,7 +22,5 @@ response, error := service.CreateCollection( databases.WithCreateCollectionPermissions(interface{}{"read("any")"}), databases.WithCreateCollectionDocumentSecurity(false), databases.WithCreateCollectionEnabled(false), - databases.WithCreateCollectionAttributes([]interface{}{}), - databases.WithCreateCollectionIndexes([]interface{}{}), ) ``` diff --git a/examples/1.8.x/server-go/examples/tablesdb/create-table.md b/examples/1.8.x/server-go/examples/tablesdb/create-table.md index f08cbbbc..6ebff078 100644 --- a/examples/1.8.x/server-go/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-go/examples/tablesdb/create-table.md @@ -22,7 +22,5 @@ response, error := service.CreateTable( tablesdb.WithCreateTablePermissions(interface{}{"read("any")"}), tablesdb.WithCreateTableRowSecurity(false), tablesdb.WithCreateTableEnabled(false), - tablesdb.WithCreateTableColumns([]interface{}{}), - tablesdb.WithCreateTableIndexes([]interface{}{}), ) ``` diff --git a/examples/1.8.x/server-graphql/examples/databases/create-collection.md b/examples/1.8.x/server-graphql/examples/databases/create-collection.md index d63c4cb8..bebf657e 100644 --- a/examples/1.8.x/server-graphql/examples/databases/create-collection.md +++ b/examples/1.8.x/server-graphql/examples/databases/create-collection.md @@ -6,9 +6,7 @@ mutation { name: "", permissions: ["read("any")"], documentSecurity: false, - enabled: false, - attributes: [], - indexes: [] + enabled: false ) { _id _createdAt diff --git a/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md b/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md index a4cf2844..e7ae98e6 100644 --- a/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md @@ -6,9 +6,7 @@ mutation { name: "", permissions: ["read("any")"], rowSecurity: false, - enabled: false, - columns: [], - indexes: [] + enabled: false ) { _id _createdAt diff --git a/examples/1.8.x/server-kotlin/java/databases/create-collection.md b/examples/1.8.x/server-kotlin/java/databases/create-collection.md index 32d9cd54..da57dc3e 100644 --- a/examples/1.8.x/server-kotlin/java/databases/create-collection.md +++ b/examples/1.8.x/server-kotlin/java/databases/create-collection.md @@ -19,8 +19,6 @@ databases.createCollection( List.of(Permission.read(Role.any())), // permissions (optional) false, // documentSecurity (optional) false, // enabled (optional) - List.of(), // attributes (optional) - List.of(), // indexes (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md b/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md index 079ff5de..ce5cbff4 100644 --- a/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md +++ b/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md @@ -19,8 +19,6 @@ tablesDB.createTable( List.of(Permission.read(Role.any())), // permissions (optional) false, // rowSecurity (optional) false, // enabled (optional) - List.of(), // columns (optional) - List.of(), // indexes (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md b/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md index 9dbc8696..dd7a2f9b 100644 --- a/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md +++ b/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md @@ -18,8 +18,6 @@ val response = databases.createCollection( name = "", permissions = listOf(Permission.read(Role.any())), // optional documentSecurity = false, // optional - enabled = false, // optional - attributes = listOf(), // optional - indexes = listOf() // optional + enabled = false // optional ) ``` diff --git a/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md b/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md index cdc00e20..da5ce22a 100644 --- a/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md +++ b/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md @@ -18,8 +18,6 @@ val response = tablesDB.createTable( name = "", permissions = listOf(Permission.read(Role.any())), // optional rowSecurity = false, // optional - enabled = false, // optional - columns = listOf(), // optional - indexes = listOf() // optional + enabled = false // optional ) ``` diff --git a/examples/1.8.x/server-nodejs/examples/databases/create-collection.md b/examples/1.8.x/server-nodejs/examples/databases/create-collection.md index b58e0919..0ea9c996 100644 --- a/examples/1.8.x/server-nodejs/examples/databases/create-collection.md +++ b/examples/1.8.x/server-nodejs/examples/databases/create-collection.md @@ -14,8 +14,6 @@ const result = await databases.createCollection({ name: '', permissions: [sdk.Permission.read(sdk.Role.any())], // optional documentSecurity: false, // optional - enabled: false, // optional - attributes: [], // optional - indexes: [] // optional + enabled: false // optional }); ``` diff --git a/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md b/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md index b429f797..7b07f0d1 100644 --- a/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md @@ -14,8 +14,6 @@ const result = await tablesDB.createTable({ name: '', permissions: [sdk.Permission.read(sdk.Role.any())], // optional rowSecurity: false, // optional - enabled: false, // optional - columns: [], // optional - indexes: [] // optional + enabled: false // optional }); ``` diff --git a/examples/1.8.x/server-php/examples/databases/create-collection.md b/examples/1.8.x/server-php/examples/databases/create-collection.md index a90e579b..86566137 100644 --- a/examples/1.8.x/server-php/examples/databases/create-collection.md +++ b/examples/1.8.x/server-php/examples/databases/create-collection.md @@ -19,7 +19,5 @@ $result = $databases->createCollection( name: '', permissions: [Permission::read(Role::any())], // optional documentSecurity: false, // optional - enabled: false, // optional - attributes: [], // optional - indexes: [] // optional + enabled: false // optional );``` diff --git a/examples/1.8.x/server-php/examples/tablesdb/create-table.md b/examples/1.8.x/server-php/examples/tablesdb/create-table.md index fbe44767..3be8527b 100644 --- a/examples/1.8.x/server-php/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-php/examples/tablesdb/create-table.md @@ -19,7 +19,5 @@ $result = $tablesDB->createTable( name: '', permissions: [Permission::read(Role::any())], // optional rowSecurity: false, // optional - enabled: false, // optional - columns: [], // optional - indexes: [] // optional + enabled: false // optional );``` diff --git a/examples/1.8.x/server-python/examples/databases/create-collection.md b/examples/1.8.x/server-python/examples/databases/create-collection.md index 7e9afa0f..88529a42 100644 --- a/examples/1.8.x/server-python/examples/databases/create-collection.md +++ b/examples/1.8.x/server-python/examples/databases/create-collection.md @@ -18,9 +18,7 @@ result: Collection = databases.create_collection( name = '', permissions = [Permission.read(Role.any())], # optional document_security = False, # optional - enabled = False, # optional - attributes = [], # optional - indexes = [] # optional + enabled = False # optional ) print(result.model_dump()) diff --git a/examples/1.8.x/server-python/examples/tablesdb/create-table.md b/examples/1.8.x/server-python/examples/tablesdb/create-table.md index 029fb281..8940133b 100644 --- a/examples/1.8.x/server-python/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-python/examples/tablesdb/create-table.md @@ -18,9 +18,7 @@ result: Table = tables_db.create_table( name = '', permissions = [Permission.read(Role.any())], # optional row_security = False, # optional - enabled = False, # optional - columns = [], # optional - indexes = [] # optional + enabled = False # optional ) print(result.model_dump()) diff --git a/examples/1.8.x/server-rest/examples/databases/create-collection.md b/examples/1.8.x/server-rest/examples/databases/create-collection.md index 50be823f..c8813873 100644 --- a/examples/1.8.x/server-rest/examples/databases/create-collection.md +++ b/examples/1.8.x/server-rest/examples/databases/create-collection.md @@ -11,8 +11,6 @@ X-Appwrite-Key: "name": "", "permissions": ["read(\"any\")"], "documentSecurity": false, - "enabled": false, - "attributes": [], - "indexes": [] + "enabled": false } ``` diff --git a/examples/1.8.x/server-rest/examples/tablesdb/create-table.md b/examples/1.8.x/server-rest/examples/tablesdb/create-table.md index 62088351..c68aac6d 100644 --- a/examples/1.8.x/server-rest/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-rest/examples/tablesdb/create-table.md @@ -11,8 +11,6 @@ X-Appwrite-Key: "name": "", "permissions": ["read(\"any\")"], "rowSecurity": false, - "enabled": false, - "columns": [], - "indexes": [] + "enabled": false } ``` diff --git a/examples/1.8.x/server-ruby/examples/databases/create-collection.md b/examples/1.8.x/server-ruby/examples/databases/create-collection.md index 3b21dc54..98411c08 100644 --- a/examples/1.8.x/server-ruby/examples/databases/create-collection.md +++ b/examples/1.8.x/server-ruby/examples/databases/create-collection.md @@ -18,8 +18,6 @@ result = databases.create_collection( name: '', permissions: [Permission.read(Role.any())], # optional document_security: false, # optional - enabled: false, # optional - attributes: [], # optional - indexes: [] # optional + enabled: false # optional ) ``` diff --git a/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md b/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md index d89b2be5..020745ac 100644 --- a/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md @@ -18,8 +18,6 @@ result = tables_db.create_table( name: '', permissions: [Permission.read(Role.any())], # optional row_security: false, # optional - enabled: false, # optional - columns: [], # optional - indexes: [] # optional + enabled: false # optional ) ``` diff --git a/examples/1.8.x/server-swift/examples/databases/create-collection.md b/examples/1.8.x/server-swift/examples/databases/create-collection.md index 6d90e7ea..9e7734fa 100644 --- a/examples/1.8.x/server-swift/examples/databases/create-collection.md +++ b/examples/1.8.x/server-swift/examples/databases/create-collection.md @@ -14,9 +14,7 @@ let collection = try await databases.createCollection( name: "", permissions: [Permission.read(Role.any())], // optional documentSecurity: false, // optional - enabled: false, // optional - attributes: [], // optional - indexes: [] // optional + enabled: false // optional ) ``` diff --git a/examples/1.8.x/server-swift/examples/tablesdb/create-table.md b/examples/1.8.x/server-swift/examples/tablesdb/create-table.md index d8c537dc..31646938 100644 --- a/examples/1.8.x/server-swift/examples/tablesdb/create-table.md +++ b/examples/1.8.x/server-swift/examples/tablesdb/create-table.md @@ -14,9 +14,7 @@ let table = try await tablesDB.createTable( name: "", permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional - enabled: false, // optional - columns: [], // optional - indexes: [] // optional + enabled: false // optional ) ``` diff --git a/specs/1.8.x/open-api3-1.8.x-console.json b/specs/1.8.x/open-api3-1.8.x-console.json index 7df6ecb3..1bfc5b8f 100644 --- a/specs/1.8.x/open-api3-1.8.x-console.json +++ b/specs/1.8.x/open-api3-1.8.x-console.json @@ -10353,22 +10353,6 @@ "type": "boolean", "description": "Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.", "x-example": false - }, - "attributes": { - "type": "array", - "description": "Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ @@ -48904,22 +48888,6 @@ "type": "boolean", "description": "Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.", "x-example": false - }, - "columns": { - "type": "array", - "description": "Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ @@ -79254,4 +79222,4 @@ "description": "Full API docs, specs and tutorials", "url": "https:\/\/appwrite.io\/docs" } -} \ No newline at end of file +} diff --git a/specs/1.8.x/open-api3-1.8.x-server.json b/specs/1.8.x/open-api3-1.8.x-server.json index 71d3f0f6..f4cfb921 100644 --- a/specs/1.8.x/open-api3-1.8.x-server.json +++ b/specs/1.8.x/open-api3-1.8.x-server.json @@ -7803,22 +7803,6 @@ "type": "boolean", "description": "Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.", "x-example": false - }, - "attributes": { - "type": "array", - "description": "Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ @@ -28949,22 +28933,6 @@ "type": "boolean", "description": "Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.", "x-example": false - }, - "columns": { - "type": "array", - "description": "Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ diff --git a/specs/1.8.x/swagger2-1.8.x-console.json b/specs/1.8.x/swagger2-1.8.x-console.json index 73bceab4..5e3a8532 100644 --- a/specs/1.8.x/swagger2-1.8.x-console.json +++ b/specs/1.8.x/swagger2-1.8.x-console.json @@ -10495,24 +10495,6 @@ "description": "Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.", "default": true, "x-example": false - }, - "attributes": { - "type": "array", - "description": "Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "default": [], - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "default": [], - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ @@ -48942,24 +48924,6 @@ "description": "Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.", "default": true, "x-example": false - }, - "columns": { - "type": "array", - "description": "Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "default": [], - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "default": [], - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ diff --git a/specs/1.8.x/swagger2-1.8.x-server.json b/specs/1.8.x/swagger2-1.8.x-server.json index 41abca79..f5c8531a 100644 --- a/specs/1.8.x/swagger2-1.8.x-server.json +++ b/specs/1.8.x/swagger2-1.8.x-server.json @@ -7923,24 +7923,6 @@ "description": "Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.", "default": true, "x-example": false - }, - "attributes": { - "type": "array", - "description": "Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "default": [], - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "default": [], - "x-example": null, - "items": { - "type": "object" - } } }, "required": [ @@ -29056,24 +29038,6 @@ "description": "Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.", "default": true, "x-example": false - }, - "columns": { - "type": "array", - "description": "Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.", - "default": [], - "x-example": null, - "items": { - "type": "object" - } - }, - "indexes": { - "type": "array", - "description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).", - "default": [], - "x-example": null, - "items": { - "type": "object" - } } }, "required": [