Set CreateDateColumn programmatically
See original GitHub issueIs 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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This issue is also relevant when in automated tests you wish to create a record in the database with a past creation date.
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.