activerecord-rdb-adapter 0.7.3 → 0.7.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f71a7f43889ccb34453a8ae98854cf95b966cd1866e8e5c156081d80472ddb5
|
4
|
+
data.tar.gz: 381147052286bd4b4179ed7d9e209f4ff7d31e93e28b490c973fb30521e16e89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1515d2fcb162e54b6cd431b08bd9742ba96faf292aa61945ece6d255ae806f8b82cf014ee9114fff043fd71feb7b4a693ea1cf4e8a77a21fca7686e29c70d72d
|
7
|
+
data.tar.gz: b38a3010b7a77fa5931ef6a7edb727673c7bb1da6e34581b0649b8fd20adf000989b359abac3ffc5a72f164a2c11887bdeed4bc3b8dafe70c5ffc51658551f9e
|
@@ -163,7 +163,7 @@ module ActiveRecord
|
|
163
163
|
copy_column = 'c_temp'
|
164
164
|
add_column table_name, copy_column, type, options
|
165
165
|
execute(squish_sql(<<-END_SQL))
|
166
|
-
UPDATE #{table_name} SET #{copy_column
|
166
|
+
UPDATE #{table_name} SET #{quote_column_name(copy_column)} = #{quote_column_name(column_name)};
|
167
167
|
END_SQL
|
168
168
|
remove_column table_name, column_name
|
169
169
|
rename_column table_name, copy_column, column_name
|
@@ -198,7 +198,7 @@ module ActiveRecord
|
|
198
198
|
copy_column = 'c_temp'
|
199
199
|
add_column table_name, copy_column, type, options
|
200
200
|
execute(squish_sql(<<-END_SQL))
|
201
|
-
UPDATE #{table_name} SET #{copy_column
|
201
|
+
UPDATE #{table_name} SET #{quote_column_name(copy_column)} = #{quote_column_name(column_name)};
|
202
202
|
END_SQL
|
203
203
|
remove_column table_name, column_name
|
204
204
|
rename_column table_name, copy_column, column_name
|