From 3e8cb025ad50954bcc86a7673afeb8329938ea8d Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 14 Feb 2019 11:51:36 +0100 Subject: [PATCH] P5-3441 add designer automatic payouts --- migrations/000.094.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/000.094.sql diff --git a/migrations/000.094.sql b/migrations/000.094.sql new file mode 100644 index 0000000..cfcd121 --- /dev/null +++ b/migrations/000.094.sql @@ -0,0 +1,10 @@ +-- P5-3441 add automatic payouts column to designers + +ALTER TABLE designers + ADD COLUMN automatic_payout INTEGER DEFAULT 0; + +UPDATE designers SET automatic_payout = 0; + +ALTER TABLE designers + ALTER COLUMN automatic_payout SET NOT NULL; +