Added index for url target (to improve performance later on)

This commit is contained in:
Nicolai Ort 2021-08-14 09:09:29 +02:00
parent 3eda0b0c9c
commit 6680ce7e50
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ exports.up = function(knex) {
})
.createTable('urls', function(table){
table.string('shortcode').primary();
table.string('target');
table.string('target').index();
table.timestamps();
});
};