Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags...
[akkoma] / priv / repo / migrations / 20210106183301_data_migration_create_populate_hashtags_table.exs
1 defmodule Pleroma.Repo.Migrations.DataMigrationCreatePopulateHashtagsTable do
2 use Ecto.Migration
3
4 def up do
5 dt = NaiveDateTime.utc_now()
6
7 execute(
8 "INSERT INTO data_migrations(name, inserted_at, updated_at) " <>
9 "VALUES ('populate_hashtags_table', '#{dt}', '#{dt}') ON CONFLICT DO NOTHING;"
10 )
11 end
12
13 def down, do: :ok
14 end