Skip to content

Collision detect avoidance #772

@dereuromark

Description

@dereuromark

We should add a timestamp collision detection avoidance.

https://book.cakephp.org/5/en/tutorials-and-examples/cms/database.html#migrations
People running the tutorial commands as a single CLI run:

bin/cake bake migration CreateUsers email:string password:string created modified
bin/cake bake migration CreateArticles user_id:integer title:string slug:string[191]:unique body:text published:boolean created modified
bin/cake bake migration CreateTags title:string[191]:unique created modified
bin/cake bake migration CreateArticlesTags article_id:integer:primary tag_id:integer:primary created modified

Creating files with same timestamp (and thus blowing up then on migrate)
Image

We could check if the current timestamp second already exists, and if so +1 until it is unique.
This shouldnt be a big deal to solve I figure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions