Skip to content

migrations timestamp bug #360

Closed
Closed
@Spoki4

Description

Hi, u use in migrations table only 10 numbers.

timestamp real_timestamp
7111386161 1487111386161
7497664672 1487497664672
7802041914 1487802041914
7932192510 1487932192510
7943972051 1487943972051
9413161823 1489413161823
9519798663 1489519798663
9550577803 1489550577803

And now I try add new migrations with timestamp 1490149967376. 1490149967376 > 1489550577803 BUT
0149967376 < 9550577803. I got an error:

Error: New migration found: CreateOfferTable1490149967376, however this migration's timestamp is not valid. Migration's timestamp should not be older then migrations already executed in the database.
    at D:\Repositories\palport\src\migration\MigrationExecutor.ts:63:23
    at Array.filter (native)
    at MigrationExecutor.<anonymous> (D:\Repositories\palport\src\migration\MigrationExecutor.ts:55:49)
    at step (D:\Repositories\palport\node_modules\typeorm\migration\MigrationExecutor.js:32:23)
    at Object.next (D:\Repositories\palport\node_modules\typeorm\migration\MigrationExecutor.js:13:53)
    at fulfilled (D:\Repositories\palport\node_modules\typeorm\migration\MigrationExecutor.js:4:58)
    at process._tickDomainCallback (internal/process/next_tick.js:129:7)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions