que-scheduler 4.6.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2e01f6eaa026842cf6f2041b3f979e571ca455427cdd70c8609d4f2a6c561a6
4
- data.tar.gz: 3acb6027f4d8508f7fc7cbc2e27d55442783f4dcb3d855645bfb5e8db9054ad8
3
+ metadata.gz: 97c2b6fc33ff2ee357b0270dae679c66b50064eb8548f0e3be24c07ea504d939
4
+ data.tar.gz: c1ea678b7540e3f02ac5c7eee3416d20238819eb4050bb2f3d6e7183f342022a
5
5
  SHA512:
6
- metadata.gz: e7c0eae15faf60069fc997a37d73c8521ab441e257ec18689d26b5cabc6fb7165a83207c54eee8890e4db43aac673263ef81072f9b7541bbbf12a45c427547ef
7
- data.tar.gz: 2218a3e0b28e4d64ad7f7fc807ddff0761c46344b89e762e127dd49e833a5e2c11d6ed59726a8f0eba1b2fa10855b73415dc1a964819de5dcf1109be43d4349a
6
+ metadata.gz: cdb0c8db5b2b9ab99e6a1e8b04a9710a8c19913ebdcc528ed71e0b27f3dad7231887fc8415d85a5aea3bd91304f7682402530a9612ee77037ecf04b2ea050d80
7
+ data.tar.gz: 4aed1036ef3f2d9937b8928ec0ccb6e6fc14651d8803cbaaddf52b3d0c3da3a7b744a4aa5db5a898440cef9edd45f77325009552fe3b7c5c9bbe9448b701e34f
data/README.md CHANGED
@@ -25,9 +25,9 @@ resque-scheduler files, but with additional features.
25
25
  will fail if Que is set to execute jobs synchronously, i.e. `Que::Job.run_synchronously = true`.
26
26
 
27
27
  ```ruby
28
- class CreateQueSchedulerSchema < ActiveRecord::Migration
28
+ class CreateQueSchedulerSchema < ActiveRecord::Migration[6.0]
29
29
  def change
30
- Que::Scheduler::Migrations.migrate!(version: 7)
30
+ Que::Scheduler::Migrations.migrate!(version: 8)
31
31
  end
32
32
  end
33
33
  ```
@@ -210,23 +210,25 @@ ie, This will perform all migrations necessary up to the latest version, skippin
210
210
  performed.
211
211
 
212
212
  ```ruby
213
- class CreateQueSchedulerSchema < ActiveRecord::Migration
213
+ class CreateQueSchedulerSchema < ActiveRecord::Migration[6.0]
214
214
  def change
215
- Que::Scheduler::Migrations.migrate!(version: 7)
215
+ Que::Scheduler::Migrations.migrate!(version: 8)
216
216
  end
217
217
  end
218
218
  ```
219
219
 
220
220
  The changes in past migrations were:
221
221
 
222
- | Version | Changes |
223
- |:-------:|---------------------------------------------------------------------------------|
224
- | 1 | Enqueued the main Que::Scheduler. This is the job that performs the scheduling. |
225
- | 2 | Added the audit table `que_scheduler_audit`. |
226
- | 3 | Added the audit table `que_scheduler_audit_enqueued`. |
227
- | 4 | Updated the the audit tables to use bigints |
228
- | 5 | Dropped an unnecessary index |
229
- | 6 | Enforced single scheduler job at the trigger level |
222
+ | Version | Changes |
223
+ |:-------:|-------------------------------------------------------------------------------------|
224
+ | 1 | Enqueued the main Que::Scheduler. This is the job that performs the scheduling. |
225
+ | 2 | Added the audit table `que_scheduler_audit`. |
226
+ | 3 | Added the audit table `que_scheduler_audit_enqueued`. |
227
+ | 4 | Updated the the audit tables to use bigints |
228
+ | 5 | Dropped an unnecessary index |
229
+ | 6 | Enforced single scheduler job at the trigger level |
230
+ | 7 | Prevent accidental deletion of scheduler job |
231
+ | 8 | Add primary key to audit. Note, this can be a slow migration if you have many rows! |
230
232
 
231
233
  The changes to the DB ([DDL](https://en.wikipedia.org/wiki/Data_definition_language)) are all
232
234
  captured in the structure.sql so will be re-run in correctly if squashed - except for the actual
@@ -0,0 +1 @@
1
+ ALTER TABLE que_scheduler_audit_enqueued DROP COLUMN "id";
@@ -0,0 +1 @@
1
+ ALTER TABLE que_scheduler_audit_enqueued ADD COLUMN id BIGSERIAL PRIMARY KEY;
@@ -47,7 +47,7 @@ module Que
47
47
  To bring the db version up to the current one required, add a migration like this. It
48
48
  is cumulative, so one line is sufficient to perform all necessary steps.
49
49
 
50
- class UpdateQueSchedulerSchema < ActiveRecord::Migration
50
+ class UpdateQueSchedulerSchema < ActiveRecord::Migration[6.0]
51
51
  def change
52
52
  Que::Scheduler::Migrations.migrate!(version: #{Que::Scheduler::Migrations::MAX_VERSION})
53
53
  end
@@ -1,5 +1,5 @@
1
1
  module Que
2
2
  module Scheduler
3
- VERSION = "4.6.0".freeze
3
+ VERSION = "5.0.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Lascelles
@@ -401,6 +401,8 @@ files:
401
401
  - lib/que/scheduler/migrations/6/up.sql
402
402
  - lib/que/scheduler/migrations/7/down.sql
403
403
  - lib/que/scheduler/migrations/7/up.sql
404
+ - lib/que/scheduler/migrations/8/down.sql
405
+ - lib/que/scheduler/migrations/8/up.sql
404
406
  - lib/que/scheduler/schedule.rb
405
407
  - lib/que/scheduler/scheduler_job.rb
406
408
  - lib/que/scheduler/scheduler_job_args.rb