Shorcode is not the primary col

This commit is contained in:
Nicolai Ort 2021-08-12 21:44:07 +02:00
parent 35af600dba
commit b5482fe3c3
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 2 deletions

View File

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