Commit ea3500da authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix postgres migration syntax

parent 1f1faeb6
Pipeline #52378 passed with stage
in 19 minutes and 2 seconds
This diff is collapsed.
...@@ -5,9 +5,9 @@ ALTER TABLE reference_genome_table ...@@ -5,9 +5,9 @@ ALTER TABLE reference_genome_table
ON DELETE SET NULL; ON DELETE SET NULL;
update reference_genome_table set file_id = update reference_genome_table set file_id =
select id from file_entry_table where (select max(id) from file_entry_table where
file_entry_table.url=reference_genome_table.source_url and file_entry_table.url=reference_genome_table.source_url and
file_entry_table.download_progress>90; file_entry_table.download_progress>90);
alter table reference_genome_gene_mapping_table add column file_id integer; alter table reference_genome_gene_mapping_table add column file_id integer;
...@@ -16,8 +16,8 @@ ALTER TABLE reference_genome_gene_mapping_table ...@@ -16,8 +16,8 @@ ALTER TABLE reference_genome_gene_mapping_table
ON DELETE SET NULL; ON DELETE SET NULL;
update reference_genome_gene_mapping_table set file_id = update reference_genome_gene_mapping_table set file_id =
select id from file_entry_table where (select max(id) from file_entry_table where
file_entry_table.url=reference_genome_gene_mapping_table.source_url and file_entry_table.url=reference_genome_gene_mapping_table.source_url and
file_entry_table.download_progress>90; file_entry_table.download_progress>90);
\ No newline at end of file
...@@ -5,9 +5,9 @@ ALTER TABLE reference_genome_table ...@@ -5,9 +5,9 @@ ALTER TABLE reference_genome_table
ON DELETE SET NULL; ON DELETE SET NULL;
update reference_genome_table set file_id = update reference_genome_table set file_id =
select id from file_entry_table where (select max(id) from file_entry_table where
file_entry_table.url=reference_genome_table.source_url and file_entry_table.url=reference_genome_table.source_url and
file_entry_table.download_progress>90; file_entry_table.download_progress>90);
alter table reference_genome_gene_mapping_table add column file_id integer; alter table reference_genome_gene_mapping_table add column file_id integer;
...@@ -16,8 +16,8 @@ ALTER TABLE reference_genome_gene_mapping_table ...@@ -16,8 +16,8 @@ ALTER TABLE reference_genome_gene_mapping_table
ON DELETE SET NULL; ON DELETE SET NULL;
update reference_genome_gene_mapping_table set file_id = update reference_genome_gene_mapping_table set file_id =
select id from file_entry_table where (select max(id) from file_entry_table where
file_entry_table.url=reference_genome_gene_mapping_table.source_url and file_entry_table.url=reference_genome_gene_mapping_table.source_url and
file_entry_table.download_progress>90; file_entry_table.download_progress>90);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment