This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
squeegily
/
pleroma
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
42
Wiki
Activity
Browse Source
Merge branch 'default-tags-for-existing-users' into 'develop'
Migration for adding tags to the existing users records See merge request
pleroma/pleroma!878
tags/v1.1.4
kaniini
5 years ago
parent
2f00814475
85734c0d49
commit
1fc1b0d935
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
priv/repo/migrations/20190301101154_add_default_tags_to_user.exs
+ 9
- 0
priv/repo/migrations/20190301101154_add_default_tags_to_user.exs
View File
@@ -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
Write
Preview
Loading…
Cancel
Save