Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
[#602] Add unique constraint to record's source_url
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiana-b committed Dec 12, 2016
1 parent bef5c75 commit bd09b0f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

exports.up = (knex) => (
knex.schema
.table('records', (table) => {
table.unique('source_url');
})
);

exports.down = (knex) => (
knex.schema
.table('records', (table) => {
table.dropUnique('source_url');
})
);

0 comments on commit bd09b0f

Please sign in to comment.