Merge branch 'stable-2.8' into stable-2.9
* stable-2.8: Keep old timestamps during data migration
This commit is contained in:
@@ -138,7 +138,8 @@ public class Schema_77 extends SchemaVersion {
|
|||||||
private void migratePatchSetApprovals(ReviewDb db,
|
private void migratePatchSetApprovals(ReviewDb db,
|
||||||
LegacyLabelTypes labelTypes) throws SQLException {
|
LegacyLabelTypes labelTypes) throws SQLException {
|
||||||
PreparedStatement stmt = ((JdbcSchema) db).getConnection().prepareStatement(
|
PreparedStatement stmt = ((JdbcSchema) db).getConnection().prepareStatement(
|
||||||
"UPDATE patch_set_approvals SET category_id = ? WHERE category_id = ?");
|
"UPDATE patch_set_approvals SET category_id = ?, granted=granted"
|
||||||
|
+ " WHERE category_id = ?");
|
||||||
try {
|
try {
|
||||||
for (LegacyLabelType type : labelTypes.getLegacyLabelTypes()) {
|
for (LegacyLabelType type : labelTypes.getLegacyLabelTypes()) {
|
||||||
stmt.setString(1, type.getName());
|
stmt.setString(1, type.getName());
|
||||||
|
Reference in New Issue
Block a user