-
Notifications
You must be signed in to change notification settings - Fork 5
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 #45 from agoravoting/go-v8
Go v8
- Loading branch information
Showing
4 changed files
with
67 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# --- !Ups | ||
|
||
ALTER TABLE election ALTER COLUMN start_date DROP DEFAULT; | ||
ALTER TABLE election ALTER COLUMN start_date DROP NOT NULL; | ||
UPDATE election SET start_date=NULL where start_date='2000-01-01 00:00:00.001'; | ||
|
||
ALTER TABLE election ALTER COLUMN end_date DROP DEFAULT; | ||
ALTER TABLE election ALTER COLUMN end_date DROP NOT NULL; | ||
UPDATE election SET end_date=NULL where end_date='2000-01-01 00:00:00.001'; | ||
|
||
|
||
# --- !Downs | ||
|
||
ALTER TABLE election ALTER COLUMN start_date SET DEFAULT '2000-01-01 00:00:00.001'; | ||
UPDATE election SET start_date='2000-01-01 00:00:00.001' where start_date IS NULL; | ||
ALTER TABLE election ALTER COLUMN start_date SET NOT NULL; | ||
|
||
ALTER TABLE election ALTER COLUMN end_date SET DEFAULT '2000-01-01 00:00:00.001'; | ||
UPDATE election SET end_date='2000-01-01 00:00:00.001' where end_date IS NULL; | ||
ALTER TABLE election ALTER COLUMN end_date SET NOT NULL; |