panda_pal 3.0.5 → 3.0.6

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
  SHA1:
3
- metadata.gz: b618369cbc7feeaca8ce3830fb7730b96ef7df29
4
- data.tar.gz: d7d002e843183aed78d45ee70cab9c90d8169bbb
3
+ metadata.gz: c38a7afd039d915750f999bee5efe9e3488774d9
4
+ data.tar.gz: 572830d2056df59130c23ef0af1234b3325e02f4
5
5
  SHA512:
6
- metadata.gz: cd00187eb8d8a01913f87e6e2614948f99546a29bc2685c4d025b9dd31d1ecd233ae3f5fdb2ce1bc15b38f9bfcb430f17fd70d32aad99ca610ce374272b2c94d
7
- data.tar.gz: 2a7a94969dfd721d2f6f4b965521717496c94dbe5e2cbf6a30813dc10f82a21514951b9435cff0a9323da46084aa4e189654cfef86a42dfec2c5328b9bcde347
6
+ metadata.gz: c1445c0ece71144a12fd669f589f83e235b24c71265991a7c759b7cb2168008465163e8277dfa3548ec081048e52f8d3252c8af028a0a560de8c67d6e057cbed
7
+ data.tar.gz: 1cbdbd147db6e443642518c7a0949cc40f921b90909a0a936e9bfdcc882ddb0a5de124957259273a931d9ed702fd678a9196ec47a8a20fdc063213913eb38574
@@ -1,5 +1,11 @@
1
1
  class EncryptOrganizationSettings < ActiveRecord::Migration[5.1]
2
2
  def up
3
+ # don't rerun this if it was already run before we renamed the migration.
4
+ existing_versions = execute ("SELECT * from schema_migrations where version = '30171205183457'")
5
+ if (existing_versions.count > 0)
6
+ execute "DELETE from schema_migrations where version = '30171205183457'"
7
+ return
8
+ end
3
9
  rename_column :panda_pal_organizations, :settings, :old_settings
4
10
  add_column :panda_pal_organizations, :encrypted_settings, :text
5
11
  add_column :panda_pal_organizations, :encrypted_settings_iv, :string
@@ -4,6 +4,12 @@ class RemoveOldOrganizationSettings < ActiveRecord::Migration[5.1]
4
4
  end
5
5
 
6
6
  def up
7
+ # don't rerun this if it was already run before we renamed the migration.
8
+ existing_versions = execute ("SELECT * from schema_migrations where version = '30171205194657'")
9
+ if (existing_versions.count > 0)
10
+ execute "DELETE from schema_migrations where version = '30171205194657'"
11
+ return
12
+ end
7
13
  # migrations run for public and local tenants. However, PandaPal::Organization
8
14
  # is going to always go to public tenant. So don't do this active record
9
15
  # stuff unless we are on the public tenant.
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure ProServe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -153,8 +153,8 @@ files:
153
153
  - db/migrate/20160413135653_create_panda_pal_sessions.rb
154
154
  - db/migrate/20160425130344_add_panda_pal_organization_to_session.rb
155
155
  - db/migrate/20170106165533_add_salesforce_id_to_organizations.rb
156
- - db/migrate/30171205183457_encrypt_organization_settings.rb
157
- - db/migrate/30171205194657_remove_old_organization_settings.rb
156
+ - db/migrate/20171205183457_encrypt_organization_settings.rb
157
+ - db/migrate/20171205194657_remove_old_organization_settings.rb
158
158
  - lib/panda_pal.rb
159
159
  - lib/panda_pal/engine.rb
160
160
  - lib/panda_pal/helpers.rb