Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33101828
20190328053912_create_scheduled_activities.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
665 B
Referenced Files
None
Subscribers
None
20190328053912_create_scheduled_activities.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.CreateScheduledActivities
do
use
Ecto.Migration
def
change
do
create_if_not_exists
table
(
:scheduled_activities
)
do
add
(
:user_id
,
references
(
:users
,
type
:
:uuid
,
on_delete
:
:delete_all
))
add
(
:scheduled_at
,
:naive_datetime
,
null
:
false
)
add
(
:params
,
:map
,
null
:
false
)
timestamps
()
end
create_if_not_exists
(
index
(
:scheduled_activities
,
[
:scheduled_at
]))
create_if_not_exists
(
index
(
:scheduled_activities
,
[
:user_id
]))
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 1:01 PM (2 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
972751
Default Alt Text
20190328053912_create_scheduled_activities.exs (665 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment