mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-19 18:18:07 +00:00
b189a49d65
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
21 lines
589 B
Elixir
21 lines
589 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2024 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
defmodule Pleroma.Repo.Migrations.DataMigrationUpdateRelayActorType do
|
|
use Ecto.Migration
|
|
|
|
def up do
|
|
dt = NaiveDateTime.utc_now()
|
|
|
|
execute(
|
|
"INSERT INTO data_migrations(name, inserted_at, updated_at) " <>
|
|
"VALUES ('update_relay_actor_type', '#{dt}', '#{dt}') ON CONFLICT DO NOTHING;"
|
|
)
|
|
end
|
|
|
|
def down do
|
|
execute("DELETE FROM data_migrations WHERE name = 'update_relay_actor_type';")
|
|
end
|
|
end
|