mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01:00
Added migration for setting default tags in existing users records
This commit is contained in:
parent
2f00814475
commit
85734c0d49
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddDefaultTagsToUser do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute "UPDATE users SET tags = array[]::varchar[] where tags IS NULL"
|
||||
end
|
||||
|
||||
def down, do: :noop
|
||||
end
|
Loading…
Reference in a new issue