mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Add column 'sort_title' to titles, ids table
This commit is contained in:
parent
57683d1cfb
commit
3a932d7b0a
17
migration/sort_title.12.cr
Normal file
17
migration/sort_title.12.cr
Normal file
@ -0,0 +1,17 @@
|
||||
class SortTitle < MG::Base
|
||||
def up : String
|
||||
<<-SQL
|
||||
-- add sort_title column to ids and titles
|
||||
ALTER TABLE ids ADD COLUMN sort_title TEXT;
|
||||
ALTER TABLE titles ADD COLUMN sort_title TEXT;
|
||||
SQL
|
||||
end
|
||||
|
||||
def down : String
|
||||
<<-SQL
|
||||
-- drop sort_title column to ids and titles
|
||||
ALTER TABLE ids DROP COLUMN sort_title;
|
||||
ALTER TABLE titles DROP COLUMN sort_title;
|
||||
SQL
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user