pg_eventstore 0.2.4 → 0.2.6

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: bc158c2f99fee36514e1902199691dfb93e882ecdebe4738bbcf787fadc8f514
4
- data.tar.gz: a70d00d4bdaef48223e35234f01d938a713f9306aa1bfb45bde99733b3654c39
3
+ metadata.gz: 578f1d0622ac152a16faddccf8d8b7a6253048a4455af9b0912a9bddb086a96f
4
+ data.tar.gz: 479c28dc87c6e89e21c4a84847d837a8e9adb9f6c757d1d673d94504ba9267d6
5
5
  SHA512:
6
- metadata.gz: bf38d241b001b4244d9fa915d2dfcabec7ac9456aa83832b8d850fe3fd34e48b0ef8b9ef5f0cca91b776124ec3333dea658220f3bd427309b3b1ae09a12714ae
7
- data.tar.gz: af5b5e4394ee696790145852ac6a7761728e5cc7e7aca127e6cde112b857e5516b121ac2bb7bf2280e7e66c93cf0823e33bcbe1f258cadbff31d50f83d9972a8
6
+ metadata.gz: 232103db9727e23cc0a387ff04544384c4509b5275b18a1231de96ceb733a74176951605b786c0f26604d956ef5a45a9ca537830683f4367712929e05b71af77
7
+ data.tar.gz: f5f3bc63fe3853b492cb48127031ad0a2fb920de91368221e09d8e763259ad4b9a398b56ae901effcce18aca7ab5f127aa38f43852e14c078776ea74180108c4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.2.6] - 2023-12-20
2
+
3
+ - Remove `events.type` column
4
+
5
+ ## [0.2.5] - 2023-12-20
6
+
7
+ - Fix bug when migrations files are returned in unsorted order on some systems
8
+
1
9
  ## [0.2.4] - 2023-12-20
2
10
 
3
11
  Due to performance issues under certain circumstances, searching by event type was giving bad performance. I decided to extract `type` column from `events` table into separated table. **No breaking changes in public API though.**
@@ -0,0 +1 @@
1
+ ALTER TABLE public.events DROP COLUMN type;
@@ -32,7 +32,7 @@ namespace :pg_eventstore do
32
32
  conn.exec('SELECT number FROM migrations ORDER BY number DESC LIMIT 1').to_a.dig(0, 'number') || -1
33
33
 
34
34
  Dir.chdir migration_files_root do
35
- Dir["*.{sql,rb}"].each do |f_name|
35
+ Dir["*.{sql,rb}"].sort.each do |f_name|
36
36
  number = File.basename(f_name).split('_')[0].to_i
37
37
  next if latest_migration >= number
38
38
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgEventstore
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_eventstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
@@ -61,6 +61,7 @@ files:
61
61
  - db/migrations/5_adjust_indexes.sql
62
62
  - db/migrations/6_change_events_event_type_id_null_constraint.sql
63
63
  - db/migrations/7_change_events_type_constraint.sql
64
+ - db/migrations/8_drop_events_type.sql
64
65
  - docs/appending_events.md
65
66
  - docs/configuration.md
66
67
  - docs/events_and_streams.md