fix the 'date-entered' bug

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3714 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-02-28 05:10:44 +00:00
parent fcb5a854f8
commit d60244ffad
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,8 @@ CREATE TABLE gncAccount (
CREATE TABLE gncTransaction (
transGuid CHAR(32) PRIMARY KEY,
date_entered DATETIME DEFAULT 'NOW',
last_modified DATETIME DEFAULT 'NOW',
date_entered DATETIME,
date_posted DATETIME,
num TEXT,
description TEXT,

View File

@ -43,7 +43,8 @@ define(`transaction', `gncTransaction, Transaction, Transaction,
num, , char *, xaccTransGetNum(ptr),
description, , char *, xaccTransGetDescription(ptr),
currency, , commod, gnc_commodity_get_unique_name(xaccTransGetCurrency(ptr)),
date_entered, , now, "NOW",
last_modified, , now, "NOW",
date_entered, , Timespec, xaccTransRetDateEnteredTS(ptr),
date_posted, , Timespec, xaccTransRetDatePostedTS(ptr),
version, , int32, xaccTransGetVersion(ptr),
transGUID, KEY, GUID *, xaccTransGetGUID(ptr),