-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Labels
Description
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)

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.