switchman 1.12.15 → 1.12.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20190114212900_add_unique_name_indexes.rb +7 -0
- data/lib/switchman/version.rb +1 -1
- metadata +4 -5
- data/db/shard_1708.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b494eb251b67d98437463c5dac44cc3b179365103290a3858ca93925833666c
|
4
|
+
data.tar.gz: 5d93b3b4142e542721960093e73057ccc8ad1105b67d05e1f7ecd2f4c817c7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e447c0c2d8271cdd50dc69ebcc2da5df36089d32bfcd26ad220c61584f1d43679961ecbb3d017f8521742cae8d6780eee291e8e602b7a423ef935e795db6bf75
|
7
|
+
data.tar.gz: '09051aac58f8bfe85c8f2ae9f645a999daf0f4ad25d24aa3ef095bdf691fba11956423de73b9629b9f39bfe0ebf66c437282e27b69f2907783caaa79b021689e'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class AddUniqueNameIndexes < ActiveRecord::Migration[4.2]
|
2
|
+
def change
|
3
|
+
add_index :switchman_shards, [:database_server_id, :name], unique: true
|
4
|
+
add_index :switchman_shards, :database_server_id, unique: true, where: "name IS NULL", name: 'index_switchman_shards_unique_primary_shard'
|
5
|
+
add_index :switchman_shards, "(true)", unique: true, where: "database_server_id IS NULL AND name IS NULL", name: 'index_switchman_shards_unique_primary_db_and_shard'
|
6
|
+
end
|
7
|
+
end
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-01-
|
13
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -193,7 +193,7 @@ files:
|
|
193
193
|
- db/migrate/20161206323434_add_back_default_string_limits_switchman.rb
|
194
194
|
- db/migrate/20180828183945_add_default_shard_index.rb
|
195
195
|
- db/migrate/20180828192111_add_timestamps_to_shards.rb
|
196
|
-
- db/
|
196
|
+
- db/migrate/20190114212900_add_unique_name_indexes.rb
|
197
197
|
- lib/switchman.rb
|
198
198
|
- lib/switchman/action_controller/caching.rb
|
199
199
|
- lib/switchman/active_record/abstract_adapter.rb
|
@@ -259,8 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
- !ruby/object:Gem::Version
|
260
260
|
version: '0'
|
261
261
|
requirements: []
|
262
|
-
|
263
|
-
rubygems_version: 2.7.6
|
262
|
+
rubygems_version: 3.0.1
|
264
263
|
signing_key:
|
265
264
|
specification_version: 4
|
266
265
|
summary: Rails 4 sharding magic
|
data/db/shard_1708.sqlite3
DELETED
File without changes
|