|
4 | 4 | drop_table :ai_topic_embeddings |
5 | 5 | drop_table :ai_post_embeddings |
6 | 6 | drop_table :ai_document_fragment_embeddings |
| 7 | + |
| 8 | + execute <<~SQL |
| 9 | + DROP INDEX IF EXISTS ai_topic_embeddings_1_1_search_bit; |
| 10 | + DROP INDEX IF EXISTS ai_topic_embeddings_2_1_search_bit; |
| 11 | + DROP INDEX IF EXISTS ai_topic_embeddings_3_1_search_bit; |
| 12 | + DROP INDEX IF EXISTS ai_topic_embeddings_4_1_search_bit; |
| 13 | + DROP INDEX IF EXISTS ai_topic_embeddings_5_1_search_bit; |
| 14 | + DROP INDEX IF EXISTS ai_topic_embeddings_6_1_search_bit; |
| 15 | + DROP INDEX IF EXISTS ai_topic_embeddings_7_1_search_bit; |
| 16 | + DROP INDEX IF EXISTS ai_topic_embeddings_8_1_search_bit; |
| 17 | +
|
| 18 | + DROP INDEX IF EXISTS ai_post_embeddings_1_1_search_bit; |
| 19 | + DROP INDEX IF EXISTS ai_post_embeddings_2_1_search_bit; |
| 20 | + DROP INDEX IF EXISTS ai_post_embeddings_3_1_search_bit; |
| 21 | + DROP INDEX IF EXISTS ai_post_embeddings_4_1_search_bit; |
| 22 | + DROP INDEX IF EXISTS ai_post_embeddings_5_1_search_bit; |
| 23 | + DROP INDEX IF EXISTS ai_post_embeddings_6_1_search_bit; |
| 24 | + DROP INDEX IF EXISTS ai_post_embeddings_7_1_search_bit; |
| 25 | + DROP INDEX IF EXISTS ai_post_embeddings_8_1_search_bit; |
| 26 | +
|
| 27 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_1_1_search_bit; |
| 28 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_2_1_search_bit; |
| 29 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_3_1_search_bit; |
| 30 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_4_1_search_bit; |
| 31 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_5_1_search_bit; |
| 32 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_6_1_search_bit; |
| 33 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_7_1_search_bit; |
| 34 | + DROP INDEX IF EXISTS ai_document_fragment_embeddings_8_1_search_bit; |
| 35 | + SQL |
7 | 36 | end |
8 | 37 |
|
9 | 38 | def down |
|
0 commit comments