mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
FIX: permalinks table: increase limit of url column, make url index unique
This commit is contained in:
parent
14890a6002
commit
464a922910
@ -0,0 +1,10 @@
|
||||
class MakeUrlColBiggerInPermalinks < ActiveRecord::Migration
|
||||
def up
|
||||
remove_index :permalinks, :url
|
||||
change_column :permalinks, :url, :string, limit: 1000, null: false
|
||||
add_index :permalinks, :url, unique: true
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user