Skip to content

Commit

Permalink
Make season endDate column not nullable (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps authored Sep 30, 2021
1 parent b7614c3 commit a0fa846
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion migrations/V006__add_season_end_date.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET time_zone='+00:00';

UPDATE league_season SET end_date = "2021-10-31 23:59:00" WHERE league_season.id>2;
UPDATE league_season SET end_date = "2021-10-31 23:59:00" WHERE end_date IS NULL;

ALTER TABLE league_season MODIFY COLUMN end_date DATETIME NOT NULL;

0 comments on commit a0fa846

Please sign in to comment.