-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show last checked time on resource page
- Loading branch information
Rui Yang
committed
Dec 27, 2017
1 parent
a83232a
commit f5ec786
Showing
8 changed files
with
778 additions
and
515 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
db/migration/migrations/1513895878_update_timestamp_with_timezone.down.sql
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
BEGIN; | ||
ALTER TABLE build_inputs | ||
ALTER COLUMN modified_time TYPE timestamp without time zone; | ||
|
||
ALTER TABLE build_outputs | ||
ALTER COLUMN modified_time TYPE timestamp without time zone; | ||
|
||
ALTER TABLE cache_invalidator | ||
ALTER COLUMN last_invalidated TYPE timestamp without time zone; | ||
ALTER TABLE cache_invalidator | ||
ALTER COLUMN last_invalidated SET DEFAULT '1970-01-01 00:00:00'::timestamp without time zone; | ||
|
||
ALTER TABLE containers | ||
ALTER COLUMN best_if_used_by TYPE timestamp without time zone; | ||
|
||
ALTER TABLE pipelines | ||
ALTER COLUMN last_scheduled TYPE timestamp without time zone; | ||
ALTER TABLE pipelines | ||
ALTER COLUMN last_scheduled SET DEFAULT '1970-01-01 00:00:00'::timestamp without time zone; | ||
|
||
ALTER TABLE resource_types | ||
ALTER COLUMN last_checked TYPE timestamp without time zone; | ||
ALTER TABLE resource_types | ||
ALTER COLUMN last_checked SET DEFAULT '1970-01-01 00:00:00'::timestamp without time zone; | ||
|
||
ALTER TABLE resources | ||
ALTER COLUMN last_checked TYPE timestamp without time zone; | ||
ALTER TABLE resources | ||
ALTER COLUMN last_checked SET DEFAULT '1970-01-01 00:00:00'::timestamp without time zone; | ||
|
||
ALTER TABLE versioned_resources | ||
ALTER COLUMN modified_time TYPE timestamp without time zone; | ||
COMMIT; |
36 changes: 36 additions & 0 deletions
36
db/migration/migrations/1513895878_update_timestamp_with_timezone.up.sql
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
BEGIN; | ||
ALTER TABLE build_inputs | ||
ALTER COLUMN modified_time TYPE timestamp with time zone; | ||
|
||
ALTER TABLE build_outputs | ||
ALTER COLUMN modified_time TYPE timestamp with time zone; | ||
|
||
ALTER TABLE cache_invalidator | ||
ALTER COLUMN last_invalidated TYPE timestamp with time zone; | ||
ALTER TABLE cache_invalidator | ||
ALTER COLUMN last_invalidated SET DEFAULT '1970-01-01 00:00:00'::timestamp with time zone; | ||
|
||
ALTER TABLE containers | ||
ALTER COLUMN best_if_used_by TYPE timestamp with time zone; | ||
|
||
ALTER TABLE pipelines | ||
ALTER COLUMN last_scheduled TYPE timestamp with time zone; | ||
ALTER TABLE pipelines | ||
ALTER COLUMN last_scheduled SET DEFAULT '1970-01-01 00:00:00'::timestamp with time zone; | ||
|
||
ALTER TABLE resource_types | ||
ALTER COLUMN last_checked TYPE timestamp with time zone; | ||
ALTER TABLE resource_types | ||
ALTER COLUMN last_checked SET DEFAULT '1970-01-01 00:00:00'::timestamp with time zone; | ||
|
||
ALTER TABLE resources | ||
ALTER COLUMN last_checked TYPE timestamp with time zone; | ||
ALTER TABLE resources | ||
ALTER COLUMN last_checked DROP DEFAULT; | ||
ALTER TABLE resources | ||
ALTER COLUMN last_checked DROP NOT NULL; | ||
|
||
ALTER TABLE versioned_resources | ||
ALTER COLUMN modified_time TYPE timestamp with time zone; | ||
COMMIT; | ||
|
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
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
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
Oops, something went wrong.