projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bugfix/1695-user_emoji_miration' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20190126160540_change_push_subscriptions_varchar.exs
diff --git
a/priv/repo/migrations/20190126160540_change_push_subscriptions_varchar.exs
b/priv/repo/migrations/20190126160540_change_push_subscriptions_varchar.exs
index 337fed156c13ef97c0f958d0810e1e4d5c38f6fb..8e1c0e630b4cdc034accf6d0cc1a81da5c181988 100644
(file)
--- a/
priv/repo/migrations/20190126160540_change_push_subscriptions_varchar.exs
+++ b/
priv/repo/migrations/20190126160540_change_push_subscriptions_varchar.exs
@@
-1,9
+1,15
@@
defmodule Pleroma.Repo.Migrations.ChangePushSubscriptionsVarchar do
use Ecto.Migration
defmodule Pleroma.Repo.Migrations.ChangePushSubscriptionsVarchar do
use Ecto.Migration
- def
change
do
+ def
up
do
alter table(:push_subscriptions) do
modify(:endpoint, :varchar)
end
end
alter table(:push_subscriptions) do
modify(:endpoint, :varchar)
end
end
+
+ def down do
+ alter table(:push_subscriptions) do
+ modify(:endpoint, :string)
+ end
+ end
end
end