legion-data 1.4.18 → 1.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b72221cdf5567d6602fa63754684e02cd690ece98810eddc539061b9f4ae19c
4
- data.tar.gz: 9865f85a9281f562bc9d6160198193f1b0c7b00c8c9132dc7c72b70160dace9d
3
+ metadata.gz: 2499b458fda547ac0989640906effc26f4c33356a93a26d6aeec200df1b68be0
4
+ data.tar.gz: e20518509eed42492608af61577e4dcc7810bb8a8a7b8e68451cd6081672d0a1
5
5
  SHA512:
6
- metadata.gz: '049288bc4a3b94d1430b992bb78d693517757fafadac4b65535b873eb8d3d0e3bbb4765d635388badf6df48ec302d06dfc6b04de9f54a85ec8acd805b0e90dda'
7
- data.tar.gz: 32bb5d25decd349a5dc85c08400c3e2364fca356c62d185a103ec68e47989f0ada735f5d28f1c8405ed3e41172deb8ad590b56b4b4d391ef49b14723335a9adc
6
+ metadata.gz: ca9b03c95aae78c9811d00ba6be7b523138c945224f2ab3b5908cb0b0693868c44cb9c97ea8b53cc37e443ce10d6b9861e495fe64caca112118360c94eaced70
7
+ data.tar.gz: 2f57f054e1fe89c1c31bb4ad37446c2220ce2a6038e3338ab1c80faeea549a248866ae95eb9d8a2f0d13d1587cb7e8b4c20b06e09c0f55c8193c88f801e07425
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Legion::Data Changelog
2
2
 
3
+ ## [1.4.19] - 2026-03-23
4
+
5
+ ### Fixed
6
+ - Fix Style/SymbolArray in conversations migration
7
+
3
8
  ## [1.4.18] - 2026-03-23
4
9
 
5
10
  ### Fixed
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ Sequel.migration do
4
+ up do
5
+ create_table(:conversations) do
6
+ String :id, primary_key: true, size: 64
7
+ String :caller_identity, size: 255
8
+ String :metadata, text: true
9
+ DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
10
+ DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
11
+ end
12
+
13
+ create_table(:conversation_messages) do
14
+ primary_key :id
15
+ String :conversation_id, size: 64, null: false
16
+ Integer :seq, null: false
17
+ String :role, size: 32, null: false
18
+ String :content, text: true
19
+ String :provider, size: 64
20
+ String :model, size: 128
21
+ Integer :input_tokens
22
+ Integer :output_tokens
23
+ DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
24
+
25
+ index %i[conversation_id seq], unique: true
26
+ foreign_key [:conversation_id], :conversations, key: :id
27
+ end
28
+ end
29
+
30
+ down do
31
+ drop_table(:conversation_messages)
32
+ drop_table(:conversations)
33
+ end
34
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Data
5
- VERSION = '1.4.18'
5
+ VERSION = '1.4.19'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.18
4
+ version: 1.4.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -136,6 +136,7 @@ files:
136
136
  - lib/legion/data/migrations/035_add_apollo_source_channel.rb
137
137
  - lib/legion/data/migrations/036_add_audit_context_snapshot.rb
138
138
  - lib/legion/data/migrations/037_add_apollo_knowledge_domain.rb
139
+ - lib/legion/data/migrations/038_add_conversations.rb
139
140
  - lib/legion/data/model.rb
140
141
  - lib/legion/data/models/apollo_access_log.rb
141
142
  - lib/legion/data/models/apollo_entry.rb