gnu-social/src/Entity
Hugo Sales 5eae3dc351
[CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified'
This commit is a port from v2's 9a515b9234 ([SCHEMA] Improve timestamp storage) to v3.

As explained by Alexei Sorokin:

Avoid the use of deprecated MariaDATABASE "zero dates" globally. If they're present
as attribute defaults somewhere, they will be replaced with NULL implicitly.
The existing "zero dates" in MariaDATABASE storage will be left intact and this
should not present any issues.

The "timestamp" type in table definitions now corresponds to DATETIME in
MariaDATABASE with "DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", which
should be close enough to the original behaviour for compatibility purposes.
It is now the recommended type for "modified" attributes, because of the
update trigger on MariaDATABASE. But there is no such trigger implemented on
PostgreSQL as of this moment.
2021-09-14 13:05:29 +01:00
..
Activity.php [CORE][DATABASE] Restructure the database 2021-09-14 13:05:29 +01:00
ActivityLocation.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ActivitySource.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ActivityTag.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Avatar.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Config.php [TOOLS] Fixed all licence blocks, to use the same, foldable, format 2021-09-14 13:05:26 +01:00
ConfirmAddress.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Conversation.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
File.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
FileThumbnail.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
FileToActivity.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
File_thumbnail.php [CORE][DATABASE] Import old classes folder into src/Entity 2021-09-14 13:04:37 +01:00
Follow.php [CORE][DATABASE] Restructure the database 2021-09-14 13:05:29 +01:00
FollowQueue.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Group.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
GroupAlias.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
GroupBlock.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
GroupInbox.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
GroupJoinQueue.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
GroupMember.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Invitation.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
LocationService.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Notification.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
Profile.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ProfileBlock.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ProfileList.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ProfilePrefs.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ProfileRole.php [CORE][DATABASE] Restructure the database 2021-09-14 13:05:29 +01:00
ProfileTag.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ProfileTagFollow.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
QueueItem.php [CORE][DATABASE] Restructure the database 2021-09-14 13:05:29 +01:00
RelatedGroup.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
ReservedNickname.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
SmsCarrier.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
User.php [CORE][DATABASE] Restructure the database 2021-09-14 13:05:29 +01:00
UserLocationPrefs.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
UserNotificationPrefs.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00
UserUrlShortenerPrefs.php [CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified' 2021-09-14 13:05:29 +01:00