Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index at topped_at #475

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:

- name: Run test
run: |
docker-compose -f docker-compose.test.yml run api test
docker-compose -f docker-compose.test.yml down
docker compose -f docker-compose.test.yml run api test
docker compose -f docker-compose.test.yml down
- if: env.PUSH == 'true'
name: Push docker image
run: |
Expand Down
23 changes: 23 additions & 0 deletions apps/core/migrations/0059_alter_article_topped_at.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.11 on 2024-11-14 13:20

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("core", "0058_article_latest_portal_view_count_alter_article_url_and_more"),
]

operations = [
migrations.AlterField(
model_name="article",
name="topped_at",
field=models.DateTimeField(
blank=True,
db_index=True,
default=None,
null=True,
verbose_name="인기글 달성 시각",
),
),
]
1 change: 1 addition & 0 deletions apps/core/models/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class Article(MetaDataModel):
blank=True,
null=True,
default=None,
db_index=True,
)

class Meta(MetaDataModel.Meta):
Expand Down
Loading