-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #457 from NBISweden/feature/emtpy-sql-patch
Empty sql patch
- Loading branch information
Showing
1 changed file
with
0 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); |