diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-09 15:49:25 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-09 15:49:25 -0500 |
commit | 9f8c1fce2c94c9fb040586740e28b3e83a3cc41f (patch) | |
tree | 0ad3b470b84c13187ff374c8f2a4d26383095c85 /src/guff/migrations.cr | |
parent | 7417966101a0b0bbd0fefc8723482ae5a2010f19 (diff) | |
download | old-guff-9f8c1fce2c94c9fb040586740e28b3e83a3cc41f.tar.bz2 old-guff-9f8c1fce2c94c9fb040586740e28b3e83a3cc41f.zip |
add created_at sorting and use json for sort fields
Diffstat (limited to 'src/guff/migrations.cr')
-rw-r--r-- | src/guff/migrations.cr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guff/migrations.cr b/src/guff/migrations.cr index 4763929..0e50fdb 100644 --- a/src/guff/migrations.cr +++ b/src/guff/migrations.cr @@ -98,6 +98,8 @@ module Guff CREATE INDEX in_posts_slug ON posts(slug) }, %{ CREATE INDEX in_posts_state ON posts(state) + }, %{ + CREATE INDEX in_posts_posted_at ON posts(posted_at) }], }, { id: "4-create-tags", |