Actualizar plugin Glossary a 1.1.0
This commit is contained in:
parent
24560c8598
commit
b9e569d03f
103 changed files with 954 additions and 2967 deletions
|
@ -1,4 +1,4 @@
|
|||
class CreateTerms < ActiveRecord::Migration
|
||||
class CreateTerms < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
# CreateTermCategories
|
||||
create_table :term_categories, :force => true do |t|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateGlossaryStyles < ActiveRecord::Migration
|
||||
class CreateGlossaryStyles < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :glossary_styles do |t|
|
||||
t.column :show_desc, :boolean, :default => false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class TermsAddColumns < ActiveRecord::Migration
|
||||
class TermsAddColumns < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :terms, :tech_en, :string, :default => ''
|
||||
add_column :terms, :name_cn, :string, :default => ''
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
class RenameGlossaryTermsFromTerms < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :terms, :tech_en, :string
|
||||
remove_column :terms, :name_cn, :string
|
||||
remove_column :terms, :name_fr, :string
|
||||
rename_column :terms, :created_on, :created_at
|
||||
rename_column :terms, :updated_on, :updated_at
|
||||
rename_table :terms, :glossary_terms
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameGlossaryCategoriesFromTermCategories < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
rename_table :term_categories, :glossary_categories
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameGlossaryViewSettingsFromGlossaryStyles < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
rename_table :glossary_styles, :glossary_view_settings
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue