Skip to content

Commit d8b3a84

Browse files
committed
Add 1.8.x support
1 parent c19d53d commit d8b3a84

File tree

7 files changed

+4
-26
lines changed

7 files changed

+4
-26
lines changed

docs/examples/java/databases/create.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ databases.create(
1313
"<DATABASE_ID>", // databaseId
1414
"<NAME>", // name
1515
false, // enabled (optional)
16-
.TABLESDB, // type (optional)
1716
new CoroutineCallback<>((result, error) -> {
1817
if (error != null) {
1918
error.printStackTrace();

docs/examples/java/tablesdb/create.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ tablesDb.create(
1313
"<DATABASE_ID>", // databaseId
1414
"<NAME>", // name
1515
false, // enabled (optional)
16-
.TABLESDB, // type (optional)
1716
new CoroutineCallback<>((result, error) -> {
1817
if (error != null) {
1918
error.printStackTrace();

docs/examples/kotlin/databases/create.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ val databases = Databases(client)
1212
val response = databases.create(
1313
databaseId = "<DATABASE_ID>",
1414
name = "<NAME>",
15-
enabled = false, // optional
16-
type = "tablesdb" // optional
15+
enabled = false // optional
1716
)

docs/examples/kotlin/tablesdb/create.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ val tablesDb = TablesDb(client)
1212
val response = tablesDb.create(
1313
databaseId = "<DATABASE_ID>",
1414
name = "<NAME>",
15-
enabled = false, // optional
16-
type = "tablesdb" // optional
15+
enabled = false // optional
1716
)

src/main/kotlin/io/appwrite/enums/Type.kt

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/main/kotlin/io/appwrite/services/Databases.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Databases(client: Client) : Service(client) {
5858
* @param databaseId Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
5959
* @param name Database name. Max length: 128 chars.
6060
* @param enabled Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
61-
* @param type Database type.
6261
* @return [io.appwrite.models.Database]
6362
*/
6463
@Deprecated(
@@ -72,15 +71,13 @@ class Databases(client: Client) : Service(client) {
7271
databaseId: String,
7372
name: String,
7473
enabled: Boolean? = null,
75-
type: io.appwrite.enums.Type? = null,
7674
): io.appwrite.models.Database {
7775
val apiPath = "/databases"
7876

7977
val apiParams = mutableMapOf<String, Any?>(
8078
"databaseId" to databaseId,
8179
"name" to name,
8280
"enabled" to enabled,
83-
"type" to type,
8481
)
8582
val apiHeaders = mutableMapOf<String, String>(
8683
"content-type" to "application/json",

src/main/kotlin/io/appwrite/services/TablesDb.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class TablesDb(client: Client) : Service(client) {
5353
* @param databaseId Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
5454
* @param name Database name. Max length: 128 chars.
5555
* @param enabled Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
56-
* @param type Database type.
5756
* @return [io.appwrite.models.Database]
5857
*/
5958
@JvmOverloads
@@ -62,15 +61,13 @@ class TablesDb(client: Client) : Service(client) {
6261
databaseId: String,
6362
name: String,
6463
enabled: Boolean? = null,
65-
type: io.appwrite.enums.Type? = null,
6664
): io.appwrite.models.Database {
6765
val apiPath = "/tablesdb"
6866

6967
val apiParams = mutableMapOf<String, Any?>(
7068
"databaseId" to databaseId,
7169
"name" to name,
7270
"enabled" to enabled,
73-
"type" to type,
7471
)
7572
val apiHeaders = mutableMapOf<String, String>(
7673
"content-type" to "application/json",
@@ -1462,7 +1459,7 @@ class TablesDb(client: Client) : Service(client) {
14621459
}
14631460

14641461
/**
1465-
* List indexes in the collection.
1462+
* List indexes on the table.
14661463
*
14671464
* @param databaseId Database ID.
14681465
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tables#tablesCreate).
@@ -1499,7 +1496,7 @@ class TablesDb(client: Client) : Service(client) {
14991496
}
15001497

15011498
/**
1502-
* Creates an index on the columns listed. Your index should include all the columns you will query in a single request.Attributes can be `key`, `fulltext`, and `unique`.
1499+
* Creates an index on the columns listed. Your index should include all the columns you will query in a single request.Type can be `key`, `fulltext`, or `unique`.
15031500
*
15041501
* @param databaseId Database ID.
15051502
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tables#tablesCreate).

0 commit comments

Comments
 (0)