Skip to content

Commit

Permalink
Merge pull request #457 from NBISweden/feature/emtpy-sql-patch
Browse files Browse the repository at this point in the history
Empty sql patch
  • Loading branch information
viklund authored Apr 6, 2018
2 parents 0fb4d3b + 4096221 commit ddb7cc4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sql/patch-master-db.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
-- Patches a database that is using the master checkout of the
-- swefreq.sql schema definition to the develop version.


ALTER TABLE dataset_version
ADD COLUMN (
data_contact_name VARCHAR(100) DEFAULT NULL,
data_contact_link VARCHAR(100) DEFAULT NULL);

CREATE OR REPLACE VIEW dataset_version_current AS
SELECT * FROM dataset_version
WHERE (dataset_pk, dataset_version_pk) IN (
SELECT dataset_pk, MAX(dataset_version_pk) FROM dataset_version
WHERE available_from < now()
GROUP BY dataset_pk );

0 comments on commit ddb7cc4

Please sign in to comment.