X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20190513175809_change_hide_column_in_filter_table.exs;h=8135ab17872f8b12c67d677992474d4006866710;hb=cc4c5f22f4e6946c40bfc4c9517eaeb28f39a27d;hp=2ffb88cc93b93f0e2dbd9066769fe04b7891c9c2;hpb=5e2b491276d5cd8d90fddf219f7653d1c9b31ef3;p=akkoma diff --git a/priv/repo/migrations/20190513175809_change_hide_column_in_filter_table.exs b/priv/repo/migrations/20190513175809_change_hide_column_in_filter_table.exs index 2ffb88cc9..8135ab178 100644 --- a/priv/repo/migrations/20190513175809_change_hide_column_in_filter_table.exs +++ b/priv/repo/migrations/20190513175809_change_hide_column_in_filter_table.exs @@ -1,9 +1,15 @@ defmodule Pleroma.Repo.Migrations.ChangeHideColumnInFilterTable do use Ecto.Migration - def change do + def up do alter table(:filters) do - modify :hide, :boolean, default: false + modify(:hide, :boolean, default: false) + end + end + + def down do + alter table(:filters) do + modify(:hide, :boolean) end end end