额外选项
时间戳
如果你需要为迁移名称指定时间戳,请使用 -t(--timestamp 的别名)并传入时间戳(应为非负数)
typeorm -t <specific-timestamp> migration:{create|generate}你可以这样获取时间戳:
Date.now()
/* 或者 */ new Date().getTime()Timestamp
If you need to specify a timestamp for the migration name, use the -t (alias for --timestamp) and pass the timestamp (should be a non-negative number)
typeorm -t <specific-timestamp> migration:{create|generate}You can get a timestamp from:
Date.now()
/* OR */ new Date().getTime()