Skip to content

Commit 558ed56

Browse files
committed
fix codacy
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 01b3af6 commit 558ed56

File tree

1 file changed

+75
-1
lines changed

1 file changed

+75
-1
lines changed

app/src/main/java/com/nextcloud/client/database/migrations/Migration98to99.kt

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,83 @@ package com.nextcloud.client.database.migrations
1010
import androidx.room.migration.Migration
1111
import androidx.sqlite.db.SupportSQLiteDatabase
1212

13-
@Suppress("MagicNumber")
13+
@Suppress("MagicNumber", "LongMethod")
1414
val MIGRATION_98_99 = object : Migration(98, 99) {
1515
override fun migrate(db: SupportSQLiteDatabase) {
1616
db.execSQL("DROP TABLE IF EXISTS capabilities")
17+
18+
db.execSQL(
19+
"""
20+
CREATE TABLE IF NOT EXISTS capabilities (
21+
_id INTEGER PRIMARY KEY AUTOINCREMENT,
22+
account TEXT,
23+
version_mayor INTEGER,
24+
version_minor INTEGER,
25+
version_micro INTEGER,
26+
version_string TEXT,
27+
version_edition TEXT,
28+
extended_support INTEGER,
29+
core_pollinterval INTEGER,
30+
sharing_api_enabled INTEGER,
31+
sharing_public_enabled INTEGER,
32+
sharing_public_password_enforced INTEGER,
33+
sharing_public_ask_for_optional_password INTEGER,
34+
sharing_public_expire_date_enabled INTEGER,
35+
sharing_public_expire_date_days INTEGER,
36+
sharing_public_expire_date_enforced INTEGER,
37+
sharing_public_send_mail INTEGER,
38+
sharing_public_upload INTEGER,
39+
sharing_user_send_mail INTEGER,
40+
sharing_resharing INTEGER,
41+
sharing_federation_outgoing INTEGER,
42+
sharing_federation_incoming INTEGER,
43+
files_bigfilechunking INTEGER,
44+
files_undelete INTEGER,
45+
files_versioning INTEGER,
46+
files_locking_version TEXT,
47+
external_links INTEGER,
48+
server_name TEXT,
49+
server_color TEXT,
50+
server_text_color TEXT,
51+
server_element_color TEXT,
52+
background_url TEXT,
53+
server_slogan TEXT,
54+
server_logo TEXT,
55+
background_default INTEGER,
56+
background_plain INTEGER,
57+
end_to_end_encryption INTEGER,
58+
end_to_end_encryption_keys_exist INTEGER,
59+
end_to_end_encryption_api_version TEXT,
60+
activity INTEGER,
61+
richdocument INTEGER,
62+
recommendation INTEGER,
63+
richdocument_mimetype_list TEXT,
64+
richdocument_optional_mimetype_list TEXT,
65+
richdocument_direct_editing INTEGER,
66+
richdocument_direct_templates INTEGER,
67+
richdocument_product_name TEXT,
68+
direct_editing_etag TEXT,
69+
etag TEXT,
70+
user_status INTEGER,
71+
user_status_supports_emoji INTEGER,
72+
user_status_supports_busy INTEGER,
73+
assistant INTEGER,
74+
groupfolders INTEGER,
75+
drop_account INTEGER,
76+
security_guard INTEGER,
77+
forbidden_filename_characters TEXT,
78+
forbidden_filenames TEXT,
79+
forbidden_filename_extensions TEXT,
80+
forbidden_filename_basenames TEXT,
81+
windows_compatible_filenames INTEGER,
82+
files_download_limit INTEGER,
83+
files_download_limit_default INTEGER,
84+
notes_folder_path TEXT,
85+
default_permissions INTEGER,
86+
has_valid_subscription INTEGER,
87+
client_integration_json TEXT
88+
)
89+
""".trimIndent()
90+
)
1791
}
1892
}

0 commit comments

Comments
 (0)