Permalink
Browse files

Migrate gridded tasks to creation mode 0

  • Loading branch information...
ethan-nelson committed Aug 8, 2018
1 parent 0b01fd5 commit aba36203e8f994e27fee395de9351ffef124157e
Showing with 6 additions and 1 deletion.
  1. +6 −1 devops/tm2-pg-migration/migrationscripts.sql
@@ -66,12 +66,17 @@ INSERT INTO hotnew.projects(
select setval('hotnew.projects_id_seq',(select max(id) from hotnew.projects));
-- Set the task_creation_mode to 'arbitrary' when project's zoom was None in
-- TM2
-- TM2 or 'grid' when it was not None
Update hotnew.projects
set task_creation_mode = 1
from hotold.projects as p
where p.id = hotnew.projects.id and p.zoom is NULL;
Update hotnew.projects
set task_creation_mode = 0
from hotold.projects as p
where p.id = hotnew.projects.id and p.zoom is not NULL;
-- Project info & translations
-- Skip any records relating to projects that have not been imported
INSERT INTO hotnew.project_info(

0 comments on commit aba3620

Please sign in to comment.