Shorcode is not the primary col
This commit is contained in:
parent
35af600dba
commit
b5482fe3c3
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue