diff --git a/migrations/V006__add_season_end_date.sql b/migrations/V006__add_season_end_date.sql index 70624a1..47d5af7 100644 --- a/migrations/V006__add_season_end_date.sql +++ b/migrations/V006__add_season_end_date.sql @@ -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; \ No newline at end of file