projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'linkify' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20191026191910_set_not_null_for_users.exs
diff --git
a/priv/repo/migrations/20191026191910_set_not_null_for_users.exs
b/priv/repo/migrations/20191026191910_set_not_null_for_users.exs
index f145a89ab908b05d464de94da99104d0634d6950..9d8d0ccf8df689b74acd89e269cf1792a515dd49 100644
(file)
--- a/
priv/repo/migrations/20191026191910_set_not_null_for_users.exs
+++ b/
priv/repo/migrations/20191026191910_set_not_null_for_users.exs
@@
-8,7
+8,6
@@
defmodule Pleroma.Repo.Migrations.SetNotNullForUsers do
execute("UPDATE users SET follower_count = 0 WHERE follower_count IS NULL")
execute("ALTER TABLE users
execute("UPDATE users SET follower_count = 0 WHERE follower_count IS NULL")
execute("ALTER TABLE users
- ALTER COLUMN following SET NOT NULL,
ALTER COLUMN local SET NOT NULL,
ALTER COLUMN source_data SET NOT NULL,
ALTER COLUMN note_count SET NOT NULL,
ALTER COLUMN local SET NOT NULL,
ALTER COLUMN source_data SET NOT NULL,
ALTER COLUMN note_count SET NOT NULL,
@@
-27,7
+26,6
@@
defmodule Pleroma.Repo.Migrations.SetNotNullForUsers do
def down do
execute("ALTER TABLE users
def down do
execute("ALTER TABLE users
- ALTER COLUMN following DROP NOT NULL,
ALTER COLUMN local DROP NOT NULL,
ALTER COLUMN source_data DROP NOT NULL,
ALTER COLUMN note_count DROP NOT NULL,
ALTER COLUMN local DROP NOT NULL,
ALTER COLUMN source_data DROP NOT NULL,
ALTER COLUMN note_count DROP NOT NULL,