Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Backend
Commits
28814338
Commit
28814338
authored
Feb 13, 2021
by
Muhammad Rafif Elfazri
Browse files
Delete Index [id, inserted_at]
parent
dad60f1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/20201211030926_create_users.exs
View file @
28814338
...
...
@@ -8,7 +8,6 @@ defmodule Diskuy.Repo.Migrations.CreateUsers do
add
:picture
,
:string
timestamps
()
end
create
index
(
:users
,
[
:id
,
:inserted_at
])
create
unique_index
(
:users
,
[
:username
])
create
unique_index
(
:users
,
[
:email
])
end
...
...
priv/repo/migrations/20201211032933_create_topics.exs
View file @
28814338
...
...
@@ -7,7 +7,6 @@ defmodule Diskuy.Repo.Migrations.CreateTopics do
timestamps
()
end
create
index
(
:topics
,
[
:id
,
:inserted_at
])
create
unique_index
(
:topics
,
[
:name
])
end
end
priv/repo/migrations/20201211041307_create_threads.exs
View file @
28814338
...
...
@@ -14,7 +14,6 @@ defmodule Diskuy.Repo.Migrations.CreateThreads do
create
index
(
:threads
,
[
:topic_id
])
create
index
(
:threads
,
[
:user_id
])
create
index
(
:threads
,
[
:id
,
:inserted_at
])
create
unique_index
(
:threads
,
[
:title
,
:topic_id
],
name:
:title_in_topic_unique
)
end
end
priv/repo/migrations/20201211055930_create_posts.exs
View file @
28814338
...
...
@@ -12,7 +12,6 @@ defmodule Diskuy.Repo.Migrations.CreatePosts do
timestamps
()
end
create
index
(
:posts
,
[
:id
,
:inserted_at
])
create
index
(
:posts
,
[
:thread_id
])
create
index
(
:posts
,
[
:user_id
])
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment