Skip to content

Commit 8f157be

Browse files
committed
Revert changes
1 parent 0e16995 commit 8f157be

2 files changed

Lines changed: 8 additions & 20 deletions

File tree

  • app
    • schemas/org.schabi.newpipe.database.AppDatabase
    • src/main/java/org/schabi/newpipe/database/feed/model

app/schemas/org.schabi.newpipe.database.AppDatabase/5.json

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,21 @@
7171
"service_id",
7272
"url"
7373
],
74-
"orders": [],
7574
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_subscriptions_service_id_url` ON `${TABLE_NAME}` (`service_id`, `url`)"
7675
}
7776
],
7877
"foreignKeys": []
7978
},
8079
{
8180
"tableName": "search_history",
82-
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`creation_date` INTEGER, `service_id` INTEGER NOT NULL, `search` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
81+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `creation_date` INTEGER, `service_id` INTEGER NOT NULL, `search` TEXT)",
8382
"fields": [
83+
{
84+
"fieldPath": "id",
85+
"columnName": "id",
86+
"affinity": "INTEGER",
87+
"notNull": true
88+
},
8489
{
8590
"fieldPath": "creationDate",
8691
"columnName": "creation_date",
@@ -98,12 +103,6 @@
98103
"columnName": "search",
99104
"affinity": "TEXT",
100105
"notNull": false
101-
},
102-
{
103-
"fieldPath": "id",
104-
"columnName": "id",
105-
"affinity": "INTEGER",
106-
"notNull": true
107106
}
108107
],
109108
"primaryKey": {
@@ -119,7 +118,6 @@
119118
"columnNames": [
120119
"search"
121120
],
122-
"orders": [],
123121
"createSql": "CREATE INDEX IF NOT EXISTS `index_search_history_search` ON `${TABLE_NAME}` (`search`)"
124122
}
125123
],
@@ -222,7 +220,6 @@
222220
"service_id",
223221
"url"
224222
],
225-
"orders": [],
226223
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_streams_service_id_url` ON `${TABLE_NAME}` (`service_id`, `url`)"
227224
}
228225
],
@@ -265,7 +262,6 @@
265262
"columnNames": [
266263
"stream_id"
267264
],
268-
"orders": [],
269265
"createSql": "CREATE INDEX IF NOT EXISTS `index_stream_history_stream_id` ON `${TABLE_NAME}` (`stream_id`)"
270266
}
271267
],
@@ -357,7 +353,6 @@
357353
"columnNames": [
358354
"name"
359355
],
360-
"orders": [],
361356
"createSql": "CREATE INDEX IF NOT EXISTS `index_playlists_name` ON `${TABLE_NAME}` (`name`)"
362357
}
363358
],
@@ -401,7 +396,6 @@
401396
"playlist_id",
402397
"join_index"
403398
],
404-
"orders": [],
405399
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_playlist_stream_join_playlist_id_join_index` ON `${TABLE_NAME}` (`playlist_id`, `join_index`)"
406400
},
407401
{
@@ -410,7 +404,6 @@
410404
"columnNames": [
411405
"stream_id"
412406
],
413-
"orders": [],
414407
"createSql": "CREATE INDEX IF NOT EXISTS `index_playlist_stream_join_stream_id` ON `${TABLE_NAME}` (`stream_id`)"
415408
}
416409
],
@@ -499,7 +492,6 @@
499492
"columnNames": [
500493
"name"
501494
],
502-
"orders": [],
503495
"createSql": "CREATE INDEX IF NOT EXISTS `index_remote_playlists_name` ON `${TABLE_NAME}` (`name`)"
504496
},
505497
{
@@ -509,7 +501,6 @@
509501
"service_id",
510502
"url"
511503
],
512-
"orders": [],
513504
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_remote_playlists_service_id_url` ON `${TABLE_NAME}` (`service_id`, `url`)"
514505
}
515506
],
@@ -546,7 +537,6 @@
546537
"columnNames": [
547538
"subscription_id"
548539
],
549-
"orders": [],
550540
"createSql": "CREATE INDEX IF NOT EXISTS `index_feed_subscription_id` ON `${TABLE_NAME}` (`subscription_id`)"
551541
}
552542
],
@@ -617,7 +607,6 @@
617607
"columnNames": [
618608
"sort_order"
619609
],
620-
"orders": [],
621610
"createSql": "CREATE INDEX IF NOT EXISTS `index_feed_group_sort_order` ON `${TABLE_NAME}` (`sort_order`)"
622611
}
623612
],
@@ -654,7 +643,6 @@
654643
"columnNames": [
655644
"subscription_id"
656645
],
657-
"orders": [],
658646
"createSql": "CREATE INDEX IF NOT EXISTS `index_feed_group_subscription_join_subscription_id` ON `${TABLE_NAME}` (`subscription_id`)"
659647
}
660648
],

app/src/main/java/org/schabi/newpipe/database/feed/model/FeedGroupEntity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ data class FeedGroupEntity(
2424
var icon: FeedGroupIcon,
2525

2626
@ColumnInfo(name = SORT_ORDER)
27-
var sortOrder: Long = -1,
27+
var sortOrder: Long = -1
2828
) {
2929
companion object {
3030
const val FEED_GROUP_TABLE = "feed_group"

0 commit comments

Comments
 (0)