diff options
| author | rinpatch <rin@patch.cx> | 2021-03-15 09:35:46 +0000 |
|---|---|---|
| committer | rinpatch <rin@patch.cx> | 2021-03-15 09:35:46 +0000 |
| commit | 8194622a72d863e71428bf7dba9a2a962b163d4e (patch) | |
| tree | cd10436a46df60542201f8c60e68aa936f771ad9 /priv/repo/migrations/20210105195018_create_data_migrations.exs | |
| parent | 19fbe5b860789fb6f4958de71f9ca3ed655ee00d (diff) | |
| parent | cb734566093f406fc3db12de2408fc166486f417 (diff) | |
| download | pleroma-8194622a72d863e71428bf7dba9a2a962b163d4e.tar.gz pleroma-8194622a72d863e71428bf7dba9a2a962b163d4e.zip | |
Merge branch 'feature/object-hashtags-rework' into 'develop'
Hashtags extraction from objects. Background migration infrastructure.
Closes #1840 and #2455
See merge request pleroma/pleroma!3213
Diffstat (limited to 'priv/repo/migrations/20210105195018_create_data_migrations.exs')
| -rw-r--r-- | priv/repo/migrations/20210105195018_create_data_migrations.exs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/priv/repo/migrations/20210105195018_create_data_migrations.exs b/priv/repo/migrations/20210105195018_create_data_migrations.exs new file mode 100644 index 000000000..5f2e8d96c --- /dev/null +++ b/priv/repo/migrations/20210105195018_create_data_migrations.exs @@ -0,0 +1,17 @@ +defmodule Pleroma.Repo.Migrations.CreateDataMigrations do + use Ecto.Migration + + def change do + create_if_not_exists table(:data_migrations) do + add(:name, :string, null: false) + add(:state, :integer, default: 1) + add(:feature_lock, :boolean, default: false) + add(:params, :map, default: %{}) + add(:data, :map, default: %{}) + + timestamps() + end + + create_if_not_exists(unique_index(:data_migrations, [:name])) + end +end |
