|
71 | 71 | "service_id", |
72 | 72 | "url" |
73 | 73 | ], |
74 | | - "orders": [], |
75 | 74 | "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_subscriptions_service_id_url` ON `${TABLE_NAME}` (`service_id`, `url`)" |
76 | 75 | } |
77 | 76 | ], |
78 | 77 | "foreignKeys": [] |
79 | 78 | }, |
80 | 79 | { |
81 | 80 | "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)", |
83 | 82 | "fields": [ |
| 83 | + { |
| 84 | + "fieldPath": "id", |
| 85 | + "columnName": "id", |
| 86 | + "affinity": "INTEGER", |
| 87 | + "notNull": true |
| 88 | + }, |
84 | 89 | { |
85 | 90 | "fieldPath": "creationDate", |
86 | 91 | "columnName": "creation_date", |
|
98 | 103 | "columnName": "search", |
99 | 104 | "affinity": "TEXT", |
100 | 105 | "notNull": false |
101 | | - }, |
102 | | - { |
103 | | - "fieldPath": "id", |
104 | | - "columnName": "id", |
105 | | - "affinity": "INTEGER", |
106 | | - "notNull": true |
107 | 106 | } |
108 | 107 | ], |
109 | 108 | "primaryKey": { |
|
119 | 118 | "columnNames": [ |
120 | 119 | "search" |
121 | 120 | ], |
122 | | - "orders": [], |
123 | 121 | "createSql": "CREATE INDEX IF NOT EXISTS `index_search_history_search` ON `${TABLE_NAME}` (`search`)" |
124 | 122 | } |
125 | 123 | ], |
|
222 | 220 | "service_id", |
223 | 221 | "url" |
224 | 222 | ], |
225 | | - "orders": [], |
226 | 223 | "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_streams_service_id_url` ON `${TABLE_NAME}` (`service_id`, `url`)" |
227 | 224 | } |
228 | 225 | ], |
|
265 | 262 | "columnNames": [ |
266 | 263 | "stream_id" |
267 | 264 | ], |
268 | | - "orders": [], |
269 | 265 | "createSql": "CREATE INDEX IF NOT EXISTS `index_stream_history_stream_id` ON `${TABLE_NAME}` (`stream_id`)" |
270 | 266 | } |
271 | 267 | ], |
|
357 | 353 | "columnNames": [ |
358 | 354 | "name" |
359 | 355 | ], |
360 | | - "orders": [], |
361 | 356 | "createSql": "CREATE INDEX IF NOT EXISTS `index_playlists_name` ON `${TABLE_NAME}` (`name`)" |
362 | 357 | } |
363 | 358 | ], |
|
401 | 396 | "playlist_id", |
402 | 397 | "join_index" |
403 | 398 | ], |
404 | | - "orders": [], |
405 | 399 | "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_playlist_stream_join_playlist_id_join_index` ON `${TABLE_NAME}` (`playlist_id`, `join_index`)" |
406 | 400 | }, |
407 | 401 | { |
|
410 | 404 | "columnNames": [ |
411 | 405 | "stream_id" |
412 | 406 | ], |
413 | | - "orders": [], |
414 | 407 | "createSql": "CREATE INDEX IF NOT EXISTS `index_playlist_stream_join_stream_id` ON `${TABLE_NAME}` (`stream_id`)" |
415 | 408 | } |
416 | 409 | ], |
|
499 | 492 | "columnNames": [ |
500 | 493 | "name" |
501 | 494 | ], |
502 | | - "orders": [], |
503 | 495 | "createSql": "CREATE INDEX IF NOT EXISTS `index_remote_playlists_name` ON `${TABLE_NAME}` (`name`)" |
504 | 496 | }, |
505 | 497 | { |
|
509 | 501 | "service_id", |
510 | 502 | "url" |
511 | 503 | ], |
512 | | - "orders": [], |
513 | 504 | "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_remote_playlists_service_id_url` ON `${TABLE_NAME}` (`service_id`, `url`)" |
514 | 505 | } |
515 | 506 | ], |
|
546 | 537 | "columnNames": [ |
547 | 538 | "subscription_id" |
548 | 539 | ], |
549 | | - "orders": [], |
550 | 540 | "createSql": "CREATE INDEX IF NOT EXISTS `index_feed_subscription_id` ON `${TABLE_NAME}` (`subscription_id`)" |
551 | 541 | } |
552 | 542 | ], |
|
617 | 607 | "columnNames": [ |
618 | 608 | "sort_order" |
619 | 609 | ], |
620 | | - "orders": [], |
621 | 610 | "createSql": "CREATE INDEX IF NOT EXISTS `index_feed_group_sort_order` ON `${TABLE_NAME}` (`sort_order`)" |
622 | 611 | } |
623 | 612 | ], |
|
654 | 643 | "columnNames": [ |
655 | 644 | "subscription_id" |
656 | 645 | ], |
657 | | - "orders": [], |
658 | 646 | "createSql": "CREATE INDEX IF NOT EXISTS `index_feed_group_subscription_join_subscription_id` ON `${TABLE_NAME}` (`subscription_id`)" |
659 | 647 | } |
660 | 648 | ], |
|
0 commit comments