本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
lain.church
說明
註冊
登入
squeegily
/
pleroma
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
42
Wiki
活動
瀏覽代碼
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 年之前
父節點
2f00814475
85734c0d49
當前提交
1fc1b0d935
共有
1 個檔案被更改
,包括
9 行新增
和
0 行删除
分割檢視
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
查看文件
@@ -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…
取消
儲存