legion-data 1.4.7 → 1.4.8

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: 6e05799c2c985b4411c44ca60b6fb3b830825e113084c04f9d82292fde323dbd
4
- data.tar.gz: 770898dd6f1675c1688ba9b2279d37faff1e440f86aeddaaa207797e8a4277cf
3
+ metadata.gz: 7011c9bd3da46657e885ed8839ad6fa3537b9a06dd7dc638cf646a1c8976a7c2
4
+ data.tar.gz: e1bbdc2cebfb93204dbf7ec9fcdc2b9a95703209089b832df33bb35bbe0fda9a
5
5
  SHA512:
6
- metadata.gz: 4d77e460cbbe665134a2c106cb7d75be7d1dc263233343b102b38df6585f0e5bb43f5f7b5ca2463a08ce9a4d234e11fce40dbdbb53813868273aa47ff074e88a
7
- data.tar.gz: 84f820d8da69d6bcbb9e8d97a5c601cac341d5791777b0a9262a084ad8be8925a6044c8b1b00abd4d58ebb152f7982951e6c74103511001ed6479e685a7ca6e0
6
+ metadata.gz: f5a67c78d378273a6ef9e155851239acd0076c92d15b2f5c0d7b4e7bbf3a46ef0abeb6ba911b69de6d3a1e59095f9a68f2be11d117654b8536cff7fe2575a19d
7
+ data.tar.gz: e186cb29ff161fe778347ac23007b1ab44ee27b7213ca1540324d680ba2c6c38cb069ebaf17d87801996aa3203c48b711422dca42368907a1d03c5fd49e809ad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Legion::Data Changelog
2
2
 
3
+ ## v1.4.8
4
+
5
+ ### Fixed
6
+ - Migration 033: adds `task_delay` column (Integer, nullable) to tasks table to resolve `PG::UndefinedColumn` error when lex-tasker queries `tasks.task_delay`
7
+
3
8
  ## v1.4.7
4
9
 
5
10
  ### Added
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ Sequel.migration do
4
+ up do
5
+ next unless table_exists?(:tasks)
6
+ next if schema(:tasks).any? { |col, _| col == :task_delay }
7
+
8
+ alter_table(:tasks) do
9
+ add_column :task_delay, Integer, null: true
10
+ end
11
+ end
12
+
13
+ down do
14
+ next unless table_exists?(:tasks)
15
+ next unless schema(:tasks).any? { |col, _| col == :task_delay }
16
+
17
+ alter_table(:tasks) do
18
+ drop_column :task_delay
19
+ end
20
+ end
21
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Data
5
- VERSION = '1.4.7'
5
+ VERSION = '1.4.8'
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.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -128,6 +128,7 @@ files:
128
128
  - lib/legion/data/migrations/030_add_approval_queue.rb
129
129
  - lib/legion/data/migrations/031_add_task_depth.rb
130
130
  - lib/legion/data/migrations/032_add_task_cancelled_at.rb
131
+ - lib/legion/data/migrations/033_add_task_delay.rb
131
132
  - lib/legion/data/model.rb
132
133
  - lib/legion/data/models/apollo_access_log.rb
133
134
  - lib/legion/data/models/apollo_entry.rb