question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set CreateDateColumn programmatically

See original GitHub issue

Is there a way to set a CreateDateColumn in the code? I’m on version two of an app and i want to import the data of the old application which is in another format. Normally the behavior of CreateDateColumn is what I need but not when importing the old data.

Issue type:

[ x ] question [ ] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ x ] mysql / mariadb [ ] oracle [ ] postgres [ ] sqlite [ ] sqljs [ ] websql

TypeORM version:

[ ] latest [ ] @next [ x ] ^0.1.7 (or put your version here)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EduardsEcommented, Apr 24, 2018

This issue is also relevant when in automated tests you wish to create a record in the database with a past creation date.

1reaction
pleerockcommented, Jan 31, 2018

no, there is no. If your data does not fit CreateDateColumn requirements then you just need to create a regular column and implement creation / updation functionality manually. Its easy to implement having subscribers and listeners functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataGrid programmatically add DataGridTemplateColumn
I want to add columns to a datagrid programmatically. If I to this with text columns it ... private DataGridTemplateColumn CreateDateColumn(string property)
Read more >
Migrate postgres DB programmatically using jest globalsetup ...
I used globalsetup.js file to run the container spinup code. The container is spinning successfully, no problem in that, but the issue arises ......
Read more >
typeorm/typeorm - Gitter
I'm trying to use CreateDateColumn and UpdateDateColumn but it sets null ... I'm trying to introspect each Entity to programmatically build a graphql...
Read more >
ASPxGridView - Filter by a hidden column - DevExpress Support
... ASPxGridView Control i dont want to show Create Date Column which ... need to filter the grid by an invisible column programmatically, ......
Read more >
Incremental Load Development - IFS Documentation
... for the create date column, MVT_CREATED_DT, that only exists in the MVT . ... An entity can programmatically be defined as having...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found