mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 07:41:52 +02:00
set naming convention for editor vars
This commit is contained in:
parent
e93e2f31a0
commit
9975daca5c
2 changed files with 23 additions and 7 deletions
16
migrations/129_rename_editor_settings.rb
Normal file
16
migrations/129_rename_editor_settings.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.rename_column :sites, :autocomplete_enabled, :editor_autocomplete_enabled
|
||||
DB.rename_column :sites, :keyboard_mode, :editor_keyboard_mode
|
||||
DB.rename_column :sites, :tab_width, :editor_tab_width
|
||||
DB.drop_column :sites, :editor_keyboard_mode
|
||||
DB.add_column :sites, :editor_keyboard_mode, String, size: 10
|
||||
}
|
||||
|
||||
down {
|
||||
DB.rename_column :sites, :editor_autocomplete_enabled, :autocomplete_enabled
|
||||
DB.rename_column :sites, :editor_tab_width, :tab_width
|
||||
DB.drop_column :sites, :editor_keyboard_mode
|
||||
DB.add_column :sites, :keyboard_mode, :int, default: 0
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue