2022-02-26 07:11:42 +01:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2019-05-13 20:05:33 +02:00
|
|
|
defmodule Pleroma.Repo.Migrations.ChangeHideColumnInFilterTable do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
2019-07-01 03:08:07 +02:00
|
|
|
def up do
|
2019-05-13 20:05:33 +02:00
|
|
|
alter table(:filters) do
|
2019-10-08 14:16:39 +02:00
|
|
|
modify(:hide, :boolean, default: false)
|
2019-05-13 20:05:33 +02:00
|
|
|
end
|
|
|
|
end
|
2019-07-01 03:08:07 +02:00
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:filters) do
|
2019-10-08 14:16:39 +02:00
|
|
|
modify(:hide, :boolean)
|
2019-07-01 03:08:07 +02:00
|
|
|
end
|
|
|
|
end
|
2019-05-13 20:05:33 +02:00
|
|
|
end
|