Add title to popular posts route to improve site efficiency
This commit is contained in:
parent
3ee97b5d43
commit
1228112213
5 changed files with 59 additions and 22 deletions
7
db/migrations/002_create_slug_to_title.sql
Normal file
7
db/migrations/002_create_slug_to_title.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS titles (
|
||||
slug text not null,
|
||||
title text not null,
|
||||
primary key (slug)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue