diff --git a/payment/src/main/resources/org/killbill/billing/payment/migration/V20161130055443__payment_external_keys_not_null.sql b/payment/src/main/resources/org/killbill/billing/payment/migration/V20161130055443__payment_external_keys_not_null.sql
new file mode 100644
index 0000000..03b1a30
--- /dev/null
+++ b/payment/src/main/resources/org/killbill/billing/payment/migration/V20161130055443__payment_external_keys_not_null.sql
@@ -0,0 +1,4 @@
+alter table payment_attempts modify payment_external_key varchar(255) not null;
+alter table payment_attempts modify transaction_external_key varchar(255) not null;
+alter table payment_attempt_history modify payment_external_key varchar(255) not null;
+alter table payment_attempt_history modify transaction_external_key varchar(255) not null;