From b41ce0236a9566be9db3a78a7e4e11a1879e97e7 Mon Sep 17 00:00:00 2001 From: Xiaoming Hu Date: Mon, 9 Oct 2023 15:21:19 +0200 Subject: [PATCH] fix migrations --- ...30928122933_rename_custom_metadata_to_extended_metadata.rb | 4 ++-- ...ustom_metadata_attribute_to_extended_metadata_attribute.rb | 4 ++-- ...rename_custom_metadata_types_to_extended_metadata_types.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/db/migrate/20230928122933_rename_custom_metadata_to_extended_metadata.rb b/db/migrate/20230928122933_rename_custom_metadata_to_extended_metadata.rb index 62ffc67b34..8b7ae5c949 100644 --- a/db/migrate/20230928122933_rename_custom_metadata_to_extended_metadata.rb +++ b/db/migrate/20230928122933_rename_custom_metadata_to_extended_metadata.rb @@ -2,7 +2,7 @@ class RenameCustomMetadataToExtendedMetadata < ActiveRecord::Migration[6.1] def change rename_table :custom_metadata, :extended_metadata - rename_column :extended_metadata, :extended_metadata_type_id, :extended_metadata_type_id - rename_column :extended_metadata, :extended_metadata_attribute_id, :extended_metadata_attribute_id + rename_column :extended_metadata, :custom_metadata_type_id, :extended_metadata_type_id + rename_column :extended_metadata, :custom_metadata_attribute_id, :extended_metadata_attribute_id end end diff --git a/db/migrate/20230928124148_rename_custom_metadata_attribute_to_extended_metadata_attribute.rb b/db/migrate/20230928124148_rename_custom_metadata_attribute_to_extended_metadata_attribute.rb index a2ebd75957..070a3f6b85 100644 --- a/db/migrate/20230928124148_rename_custom_metadata_attribute_to_extended_metadata_attribute.rb +++ b/db/migrate/20230928124148_rename_custom_metadata_attribute_to_extended_metadata_attribute.rb @@ -2,7 +2,7 @@ class RenameCustomMetadataAttributeToExtendedMetadataAttribute < ActiveRecord::M def change rename_table :extended_metadata_attributes, :extended_metadata_attributes - rename_column :extended_metadata_attributes, :extended_metadata_type_id, :extended_metadata_type_id - rename_column :extended_metadata_attributes, :linked_extended_metadata_type_id, :linked_extended_metadata_type_id + rename_column :extended_metadata_attributes, :custom_metadata_type_id, :extended_metadata_type_id + rename_column :extended_metadata_attributes, :linked_custom_metadata_type_id, :linked_extended_metadata_type_id end end diff --git a/db/migrate/20230928124725_rename_custom_metadata_types_to_extended_metadata_types.rb b/db/migrate/20230928124725_rename_custom_metadata_types_to_extended_metadata_types.rb index 168419c2a6..d8b18bf427 100644 --- a/db/migrate/20230928124725_rename_custom_metadata_types_to_extended_metadata_types.rb +++ b/db/migrate/20230928124725_rename_custom_metadata_types_to_extended_metadata_types.rb @@ -1,5 +1,5 @@ class RenameCustomMetadataTypesToExtendedMetadataTypes < ActiveRecord::Migration[6.1] def change - rename_table :extended_metadata_types, :extended_metadata_types + rename_table :custom_metadata_types, :extended_metadata_types end end