Default created date to current timestamp
authorEileen McNaughton <eileen@mcnaughty.com>
Sat, 2 May 2015 23:30:52 +0000 (11:30 +1200)
committerEileen McNaughton <eileen@mcnaughty.com>
Sat, 2 May 2015 23:30:52 +0000 (11:30 +1200)
CRM/Upgrade/Incremental/sql/4.6.3.mysql.tpl

index 7f9291e6b0433961495382284418c19d02cc7250..e486339c5707d3686af6ba5e536076b3d1c629bb 100644 (file)
@@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS `civicrm_payment_token` (
      `contact_id` int unsigned NOT NULL   COMMENT 'FK to Contact ID for the owner of the token',
      `payment_processor_id` int unsigned NOT NULL   ,
      `token` varchar(255) NOT NULL   COMMENT 'Externally provided token string',
-     `created_date` timestamp    COMMENT 'Date created',
+     `created_date` timestamp   DEFAULT CURRENT_TIMESTAMP COMMENT 'Date created',
      `created_id` int unsigned    COMMENT 'Contact ID of token creator',
      `expiry_date` datetime    COMMENT 'Date this token expires',
      `email` varchar(255)    COMMENT 'Email at the time of token creation. Useful for fraud forensics',