Log message #4200447

# At Username Text
# Aug 29th 2019, 16:36 noel Hullo all. I'm trying to get going with phinx and migrations. It's giving me errors: ``` Your requirements could not be resolved to an installable set of packages. Problem 1 - cakephp/migrations 2.1.1 requires robmorgan/phinx ~0.10.3 -> satisfiable by robmorgan/phinx[0.10.3, 0.10.5, 0.10.6, 0.10.7, 0.10.8] but these conflict with your requirements or minimum-stability. - cakephp/migrations 2.1.1 requires robmorgan/phinx ~0.10.3 ->
# Aug 29th 2019, 15:47 neon1024 I knew it! :weary:
# Aug 29th 2019, 15:46 steinkel it's PHP so it's your thing :P
# Aug 29th 2019, 15:44 neon1024 Perhaps I could ask my DevOps colleague :P
# Aug 29th 2019, 15:44 neon1024 Wouldn’t Deployer be a bit more in the DevOps part of the Venn diagram?
# Aug 29th 2019, 15:43 neon1024 Still my current project is interesting, complex and huge. So lots to get stuck into
# Aug 29th 2019, 15:42 neon1024 Or someone else in my team to help with these bits
# Aug 29th 2019, 15:42 neon1024 Some days I wish I had just one application to work on so I could setup all these bits
# Aug 29th 2019, 15:42 neon1024 It’s a good point, I still don’t have a deployment pipeline yet :face_with_finger_covering_closed_lips:
# Aug 29th 2019, 15:42 dereuromark or simple sh file :slightly_smiling_face:
# Aug 29th 2019, 15:41 steinkel https://github.com/deployphp/deployer/blob/master/recipe/cakephp.php#L37
# Aug 29th 2019, 15:38 neon1024 Yeah perhaps :)
# Aug 29th 2019, 15:38 slackebot2 <neon1024>
# Aug 29th 2019, 15:38 neon1024 Really?
# Aug 29th 2019, 15:37 graziel @neon1024 just add custom script to composer.json
# Aug 29th 2019, 15:34 ricksaccous but maybe too much magic is bad sometimes
# Aug 29th 2019, 15:33 ricksaccous bin/cake schema_cache clear
# Aug 29th 2019, 15:33 ricksaccous i've just made it habit to do
# Aug 29th 2019, 15:33 ricksaccous yeah that would be cool
# Aug 29th 2019, 15:27 neon1024 Feels like it would be handy addition
# Aug 29th 2019, 15:26 neon1024 Should migrations clear orm cache after it’s run?
# Aug 29th 2019, 13:58 neon1024 José’s plugin ;P
# Aug 29th 2019, 13:57 alexdd55976 perfect
# Aug 29th 2019, 13:57 alexdd55976 oh.. :)
# Aug 29th 2019, 13:56 neon1024 Which is what the plugin does
# Aug 29th 2019, 13:54 alexdd55976 @neon1024 you could do a afterSave in AppModel and save the originalData and newData in a versioning table, adding user_id and timestamp. versioning done
# Aug 29th 2019, 13:47 admad i bet a single A4 won't cut it :slightly_smiling_face:
# Aug 29th 2019, 13:45 neon1024 Time for pencil and paper!
# Aug 29th 2019, 13:45 neon1024 ...but I’d have to update foreignkeys or duplicate associations
# Aug 29th 2019, 13:45 neon1024 I’m just thinking about hooking beforeSave to duplicate the record, then allow the save. Then swapping the duplicate to live and setting the saved to pending
# Aug 29th 2019, 13:44 admad the one submitting later wouldn't have seen the edit done earlier if it's still pending approval
# Aug 29th 2019, 13:43 admad things get even wackier when multiple people submit an edit
# Aug 29th 2019, 13:40 neon1024 Very true!
# Aug 29th 2019, 13:40 admad on the bright side at least you dont have to implement this where records are translated :P
# Aug 29th 2019, 13:40 steinkel lol, about the confusion, I remember working on a similar case in cake2 using https://github.com/lorenzo/cakephp-logstash
# Aug 29th 2019, 13:40 admad don't remember for sure, check it
# Aug 29th 2019, 13:39 neon1024 Oh really? Okay, thanks :slightly_smiling_face:
# Aug 29th 2019, 13:39 admad right, i think associations are always marked dirty
# Aug 29th 2019, 13:39 neon1024 Like adding a new Tag to a Post
# Aug 29th 2019, 13:39 neon1024 That’s a lot of `if()` statements
# Aug 29th 2019, 13:39 neon1024 Yeah, but across say 3 associations as well?