PHP Classes

File: SQL File

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   database/migrations/v1.3.3_fix_date_received_utc.sql   Download  
File: database/migrations/v1.3.3_fix_date_received_utc.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 5 days ago
Size: 677 bytes
 

Contents

Class file image Download
-- Fix date_received columns to use UTC time defaults -- v1.3.3 - Ensure date_received is always stored in UTC regardless of system timezone -- Update netmail table date_received column to use UTC default ALTER TABLE netmail ALTER COLUMN date_received SET DEFAULT (NOW() AT TIME ZONE 'UTC'); -- Update echomail table date_received column to use UTC default ALTER TABLE echomail ALTER COLUMN date_received SET DEFAULT (NOW() AT TIME ZONE 'UTC'); -- Add comments for documentation COMMENT ON COLUMN netmail.date_received IS 'UTC timestamp when message was received by system'; COMMENT ON COLUMN echomail.date_received IS 'UTC timestamp when message was received by system';