forked from AkkomaGang/akkoma
15 lines
354 B
Elixir
15 lines
354 B
Elixir
|
defmodule Pleroma.Repo.Migrations.DataMigrationCreatePopulateHashtagsTable do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def up do
|
||
|
dt = NaiveDateTime.utc_now()
|
||
|
|
||
|
execute(
|
||
|
"INSERT INTO data_migrations(name, inserted_at, updated_at) " <>
|
||
|
"VALUES ('populate_hashtags_table', '#{dt}', '#{dt}') ON CONFLICT DO NOTHING;"
|
||
|
)
|
||
|
end
|
||
|
|
||
|
def down, do: :ok
|
||
|
end
|