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();
|
table.timestamps();
|
||||||
})
|
})
|
||||||
.createTable('urls', function(table){
|
.createTable('urls', function(table){
|
||||||
table.increments('id');
|
table.string('shortcode').primary();
|
||||||
table.string('shortcode', 12);
|
|
||||||
table.string('target');
|
table.string('target');
|
||||||
table.timestamps();
|
table.timestamps();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue