Shorcode is not the primary col

This commit is contained in:
2021-08-12 21:44:07 +02:00
parent 35af600dba
commit b5482fe3c3

View File

@@ -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();
}); });