summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2020-02-04 09:03:20 -0500
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2020-02-04 09:03:20 -0500
commitfa919608641021561c620897f7aed9789d4790b5 (patch)
tree4ddb450ab618c0a65014e4dc82a660a4ddc506eb
parentc2a8802fac7dcff559200c38e177c423af7e0a3c (diff)
Require json payload with raw data
-rw-r--r--migrations/2020-02-04-140143_raw_data_not_null/down.sql2
-rw-r--r--migrations/2020-02-04-140143_raw_data_not_null/up.sql2
2 files changed, 4 insertions, 0 deletions
diff --git a/migrations/2020-02-04-140143_raw_data_not_null/down.sql b/migrations/2020-02-04-140143_raw_data_not_null/down.sql
new file mode 100644
index 0000000..724a686
--- /dev/null
+++ b/migrations/2020-02-04-140143_raw_data_not_null/down.sql
@@ -0,0 +1,2 @@
+alter table raw_data
+ alter payload drop not null;
diff --git a/migrations/2020-02-04-140143_raw_data_not_null/up.sql b/migrations/2020-02-04-140143_raw_data_not_null/up.sql
new file mode 100644
index 0000000..5a8581a
--- /dev/null
+++ b/migrations/2020-02-04-140143_raw_data_not_null/up.sql
@@ -0,0 +1,2 @@
+alter table raw_data
+ alter payload set not null;