Log message #4157065

# At Username Text
# Jul 9th 2018, 15:13 lorenzo thanks
# Jul 9th 2018, 15:11 josbeir :)
# Jul 9th 2018, 15:11 josbeir maybe i will
# Jul 9th 2018, 15:10 lorenzo if you want to add it, I can merge it :slightly_smiling_face:
# Jul 9th 2018, 15:03 josbeir but a warning would be nice because it directly it adds a record for that snapshot in the phinxlog table + overwrites the lock file
# Jul 9th 2018, 15:02 josbeir my bad of course
# Jul 9th 2018, 15:02 josbeir yep, by mistake
# Jul 9th 2018, 15:02 lorenzo right?
# Jul 9th 2018, 15:02 lorenzo the issue is using snapshot instead of diff
# Jul 9th 2018, 15:01 lorenzo i see
# Jul 9th 2018, 15:01 josbeir its possible that i'm not grasping all functionality tho :P
# Jul 9th 2018, 15:00 josbeir well. if you go back it will drop all your tables :P
# Jul 9th 2018, 15:00 josbeir lock file gets overwritten so no way to go back
# Jul 9th 2018, 14:59 josbeir snapshot includes dropTable stuff in the down() method
# Jul 9th 2018, 14:59 josbeir you already are using schemas, picture you are doing some schema changes, then you generate a snapshot instead of a diff
# Jul 9th 2018, 14:57 lorenzo how?
# Jul 9th 2018, 14:56 josbeir it can screw you over bigtime
# Jul 9th 2018, 14:56 josbeir snapshot generation should throw a warning/confirmation tbh
# Jul 9th 2018, 14:56 lorenzo nice!
# Jul 9th 2018, 14:56 josbeir git reverted the lock to a previous state and generated a diff, all good now
# Jul 9th 2018, 14:55 josbeir or generated a snapshot instead of a diff, resetted my lock file
# Jul 9th 2018, 14:55 josbeir ok @lorenzo that piece of info saves me quite some time :slightly_smiling_face:
# Jul 9th 2018, 14:49 lorenzo it needs to have the lock file first
# Jul 9th 2018, 14:49 josbeir right
# Jul 9th 2018, 14:49 lorenzo the diff between a `.lock` file in your repo and the current db schema
# Jul 9th 2018, 14:48 josbeir does it look at the actual schema?
# Jul 9th 2018, 14:48 josbeir say @lorenzo how does a migration_diff in cake bake work, what reference does it use to know what do diff and what not?
# Jul 9th 2018, 14:46 josbeir curious where the location vote for cakefest will go
# Jul 9th 2018, 14:32 lorenzo nice!
# Jul 9th 2018, 14:31 neon1024 @lorenzo I’m writing an application for use in a Call Centre, for call agents to sell products over the phone. So it’ll manage all the scripts they read, the calls they make, audit trails, logging and process all the sales :slightly_smiling_face:
# Jul 9th 2018, 14:30 lorenzo @neon1024 what’s the project about?
# Jul 9th 2018, 14:24 neon1024 Ah nice, I haven’t really got into Docker much. Things are good thanks! Busy on a new project which is a bit different to my normal Telecoms stuff :slightly_smiling_face:
# Jul 9th 2018, 14:23 lorenzo just recently started using it at work :slightly_smiling_face:
# Jul 9th 2018, 14:23 lorenzo on the open source front, I’ve been working on a linter for dockerfiles
# Jul 9th 2018, 14:23 lorenzo it’s going well, how about you?
# Jul 9th 2018, 14:22 neon1024 Got any interesting projects on the go?
# Jul 9th 2018, 14:22 neon1024 How’s things anyway @lorenzo?
# Jul 9th 2018, 14:21 neon1024 I thought perhaps ADmad would attend the Cakefest 10 year party
# Jul 9th 2018, 14:21 lorenzo there are tests, at least
# Jul 9th 2018, 14:20 neon1024 Or she, might be a lady
# Jul 9th 2018, 14:20 lorenzo heh