Skip to content

Commit

Permalink
Added migration to remove is_available_to_prime (zero-down migration)
Browse files Browse the repository at this point in the history
  • Loading branch information
reggieriser committed Jun 2, 2020
1 parent 62a55fb commit 650fce6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/app/migrations_manifest.txt
Expand Up @@ -511,3 +511,4 @@
20200513151500_uploader_refactor_zero_down_alter_tables.up.sql
20200515202122_payment_service_item_nullable_price.up.sql
20200527145249_add_mto_available_timestamp.up.sql
20200602144311_remove_is_available_to_prime.up.sql
@@ -0,0 +1,11 @@
-- Zero-down migrations (for a later PR/deployment)

-- This is just meant to catch any older code that may have changed the old
-- field during the previous deployment.
UPDATE move_task_orders
SET available_to_prime_at = updated_at
WHERE is_available_to_prime = true
AND available_to_prime_at IS NULL;

ALTER TABLE move_task_orders
DROP COLUMN is_available_to_prime;

0 comments on commit 650fce6

Please sign in to comment.