-
-
Couldn't load subscription status.
- Fork 3.7k
[4.0] [com_banners] Finish nullable and fix default values for not nullable datetime columns #26372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wilsonge
merged 21 commits into
joomla:4.0-dev
from
richard67:4.0-dev-datetime-default-com-banners
Oct 7, 2019
Merged
Changes from 14 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5fb7030
Banner not nullable datetimes defaults - SQL changes
richard67 5c19496
Change sql for column "reset" to nullable
richard67 f29cd94
Update 4.0.0-2019-06-28.sql
richard67 591f5b4
Update install.mysql.utf8.sql
richard67 2b081e7
Reset nullable and no pseudo null dates in php
richard67 f94dff0
Banner clients checked out time nullable
richard67 3274488
Banner tracks track date default value
richard67 5fbb60b
Merge branch '4.0-dev' into 4.0-dev-datetime-default-com-banners
richard67 8974017
Merge branch '4.0-dev' into 4.0-dev-datetime-default-com-banners
richard67 fca292e
Fix also modified < created
richard67 81528b1
Handle UCM content
richard67 ed4ed88
No defaults for not nullable, minimize updating old data
richard67 c846581
Merge pull request #5 from richard67/4.0-dev-datetime-default-com-ban…
richard67 87212db
Merge branch '4.0-dev' into 4.0-dev-datetime-default-com-banners
richard67 e3bd1fa
Update modified also on postgresql
richard67 3557b9a
Merge branch '4.0-dev' into 4.0-dev-datetime-default-com-banners
richard67 ee73193
Fix check for publish up and down
richard67 f3e2cd3
don't move modified check
richard67 49038b8
Merge branch '4.0-dev' into 4.0-dev-datetime-default-com-banners
richard67 13093bd
Merge branch '4.0-dev' into 4.0-dev-datetime-default-com-banners
richard67 12a3a2d
Merge remote-tracking branch 'upstream/4.0-dev' into 4.0-dev-datetime…
richard67 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
27 changes: 26 additions & 1 deletion
27
administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-06-28.sql
This file contains hidden or 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,8 +1,33 @@ | ||
| ALTER TABLE `#__banners` MODIFY `created` datetime NOT NULL; | ||
| ALTER TABLE `#__banners` MODIFY `modified` datetime NOT NULL; | ||
|
|
||
| ALTER TABLE `#__banners` MODIFY `reset` datetime NULL DEFAULT NULL; | ||
| ALTER TABLE `#__banners` MODIFY `publish_up` datetime NULL DEFAULT NULL; | ||
| ALTER TABLE `#__banners` MODIFY `publish_down` datetime NULL DEFAULT NULL; | ||
| ALTER TABLE `#__banners` MODIFY `checked_out_time` datetime NULL DEFAULT NULL; | ||
|
|
||
| ALTER TABLE `#__banner_clients` MODIFY `checked_out_time` datetime NULL DEFAULT NULL; | ||
|
|
||
| UPDATE `#__banners` SET `modified` = `created` WHERE `modified` = '0000-00-00 00:00:00'; | ||
|
|
||
| UPDATE `#__banners` SET `reset` = NULL WHERE `reset` = '0000-00-00 00:00:00'; | ||
| UPDATE `#__banners` SET | ||
| `publish_up` = CASE WHEN `publish_up` IN ('0000-00-00 00:00:00', '1000-01-01 00:00:00') THEN NULL ELSE `publish_up` END, | ||
| `publish_down` = CASE WHEN `publish_down` IN ('0000-00-00 00:00:00', '1000-01-01 00:00:00') THEN NULL ELSE `publish_down` END, | ||
| `checked_out_time` = CASE WHEN `checked_out_time` IN ('0000-00-00 00:00:00', '1000-01-01 00:00:00') THEN NULL ELSE `checked_out_time` END; | ||
| `checked_out_time` = CASE WHEN `checked_out_time` IN ('0000-00-00 00:00:00', '1000-01-01 00:00:00') THEN NULL ELSE `checked_out_time` END; | ||
|
|
||
| UPDATE `#__banner_clients` SET `checked_out_time` = NULL WHERE `checked_out_time` = '0000-00-00 00:00:00'; | ||
|
|
||
| UPDATE `#__ucm_content` SET `core_modified_time` = `core_created_time` | ||
| WHERE `core_type_alias` = 'com_banners.banner' | ||
| AND `core_modified_time` = '0000-00-00 00:00:00'; | ||
|
|
||
| UPDATE `#__ucm_content` SET `core_publish_up` = NULL | ||
| WHERE `core_type_alias` = 'com_banners.banner' | ||
| AND `core_publish_up` = '0000-00-00 00:00:00'; | ||
| UPDATE `#__ucm_content` SET `core_publish_down` = NULL | ||
| WHERE `core_type_alias` = 'com_banners.banner' | ||
| AND `core_publish_down` = '0000-00-00 00:00:00'; | ||
| UPDATE `#__ucm_content` SET `core_checked_out_time` = NULL | ||
| WHERE `core_type_alias` = 'com_banners.banner' | ||
| AND `core_checked_out_time` = '0000-00-00 00:00:00'; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.