Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33095907
20210420204354_delete_hashtags_objects_cascade.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
707 B
Referenced Files
None
Subscribers
None
20210420204354_delete_hashtags_objects_cascade.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Repo.Migrations.DeleteHashtagsObjectsCascade
do
use
Ecto.Migration
def
up
do
execute
(
"ALTER TABLE hashtags_objects DROP CONSTRAINT hashtags_objects_object_id_fkey"
)
alter
table
(
:hashtags_objects
)
do
modify
(
:object_id
,
references
(
:objects
,
on_delete
:
:delete_all
))
end
end
def
down
do
execute
(
"ALTER TABLE hashtags_objects DROP CONSTRAINT hashtags_objects_object_id_fkey"
)
alter
table
(
:hashtags_objects
)
do
modify
(
:object_id
,
references
(
:objects
,
on_delete
:
:nothing
))
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 9:59 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
972914
Default Alt Text
20210420204354_delete_hashtags_objects_cascade.exs (707 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment