Skip to content

Commit 61be0f0

Browse files
committed
Renamed default timestamp columns "created_at" and "updated_at".
1 parent b9c1906 commit 61be0f0

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ After installing Evolutility-Server-Node, follow these steps:
6262
| csvSize | Maximum number of items in CSV exports. | 1000 |
6363
| csvHeader | Use fields id or labels in CSV header. | id/label |
6464
| locale | Date format (no translation yet). | en/fr |
65-
| wTimestamp | Add timestamp columns u_date and c_date to track record creation and update times. | true |
65+
| wTimestamp | Add timestamp columns "created_at" and "updated_at" to track record creation and update times. | true |
6666
| logToConsole | Log to console. | true |
67-
| logToFile | Log to file (log file is named "evol<date>.log" as in "evol-2019-11-21.log"). | true |
67+
| logToFile | Log to file (log file is named "evol<timestamp>.log"). | true |
6868

6969
4. In the command line type the following:
7070

@@ -108,8 +108,8 @@ Configuration options are set in the file [config.js](https://github.com/evolute
108108
| wComments | Allow for user comments (not implemented yet). |
109109
| wRating | Allow for user ratings (not implemented yet). |
110110
| wTimestamp | Timestamp columns w/ date of record creation and last update. |
111-
| createdDateColumn | Column containing created date (default `c_date`). |
112-
| updatedDateColumn | Column containing last update date (default `u_date`). |
111+
| createdDateColumn | Column containing created date (default "created_at"). |
112+
| updatedDateColumn | Column containing last update date (default "updated_at"). |
113113
| schemaQueries | Enables endpoints to query for lists of tables and columns in the database schema. |
114114

115115
<a name="Models"></a>

config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ const config = {
2828
uploadPath: "../evolutility-ui-react/public/pix/",
2929

3030
// - Optional fields
31-
// - Timestamp columns u_date and c_date w/ date of record creation and last update
31+
// - Timestamp columns created_at and updated_at w/ date of record creation and last update
3232
wTimestamp: true,
3333
// - "WhoIs" columns u_uid and c_uid w/ userid of creator and last modifier
3434
wWhoIs: false,
3535
// - Comments & Ratings (community feature)
3636
wComments: false,
3737
wRating: false,
3838
// - Columns containing created and last updated dates
39-
createdDateColumn: "c_date",
40-
updatedDateColumn: "u_date",
39+
createdDateColumn: "created_at",
40+
updatedDateColumn: "updated_at",
4141

4242
// - Logs (to file and console)
4343
logToConsole: true,

0 commit comments

Comments
 (0)