Log message #4053601

# At Username Text
# Jul 18th 2017, 15:36 mic_ mikesmoniker: you are right, although the project is constrained by funds, so I am trying to find the best possible way of tacking the problem. I know it lacks elegance and simplicity, but sometimes it's all one can get :S
# Jul 18th 2017, 15:35 cleptric mic_ :slightly_smiling_face:
# Jul 18th 2017, 15:34 dereuromark @genellern the danger of this is that you put business or even sensitive data into those for production systems. And those will be forever tracked in git then.
# Jul 18th 2017, 15:34 jeremyharris @genellern yeah that’s their only real use at the moment
# Jul 18th 2017, 15:34 mic_ cleptric: I think your comment earned a beer. I can actually do a frontend in 3.x and be PHP7 friendly whereas backend can run in a fully fenced env with old PHP
# Jul 18th 2017, 15:34 mikesmoniker mic_ I’d question the value of that, personally, but yeah.. I’d be looking to freezing a 1x/2x codebase save for security/bug fixes and port it to 3. You’ll end up with better code, anyway, since more things will be done the “3x way” vs. relying on shims, deprecated APIs, hacks, etc.
# Jul 18th 2017, 15:34 genellern Ah, yeah, that's true, I use for initial database configuration
# Jul 18th 2017, 15:33 jeremyharris running seeds runs all of them
# Jul 18th 2017, 15:33 jeremyharris they just aren’t
# Jul 18th 2017, 15:32 genellern @jeremyharris Why can't you track seeds? I never heard of an issue related
# Jul 18th 2017, 15:32 cleptric mic_ Guys like @savant suggests doing partial upgrades and running a 3.x and a older version in parallel.
# Jul 18th 2017, 15:32 mic_ mikesmoniker: the other option is 1.2->1.3 and life support on PHP - and maybe from scratch 3.x.
# Jul 18th 2017, 15:31 jeremyharris although I’m not a fan of it
# Jul 18th 2017, 15:31 paul_83uk I've just discovered that if you set a cookie but then the controller method never completes (redirected due to SAML authentication) the cookie never gets set. Is this expected behaviour? If so I will raise an issue with the docs. :slightly_smiling_face:
# Jul 18th 2017, 15:31 jeremyharris for now I admit I bake a fresh migration specifically for adding data sometimes (e.g., a new user group or something that has no admin backend)
# Jul 18th 2017, 15:31 mikesmoniker mic_: We looked at 2->3 for one of our apps (many dozens of models, actions, etc.) and it looked pretty bad. We ended up not doing it. The big bottlenecks where updating all the DB queries/hooks/etc. and investigating/updating plugins.
# Jul 18th 2017, 15:31 mic_ cleptric: yes, I know. I have a bunch of apps running 1.2/1.3 and then 3.x. To put numbers: the app is ca. 27k lines (controller, model etc.). I wanted 1.2->1.3, as that would make 1.3->2.10 easier (and that opens road to PHP7)
# Jul 18th 2017, 15:30 jeremyharris I *wish* seeds were tracked like migrations. that’d be an amazing feature imo, keep the schema/data separate
# Jul 18th 2017, 15:29 jeremyharris awi I don’t quite understand
# Jul 18th 2017, 15:29 adriencs @genellern @jeremyharris thanks, next time I'll double-check the doc -_-
# Jul 18th 2017, 15:29 cleptric I agree with @jeremyharris Seeds are nice to have for local development
# Jul 18th 2017, 15:29 cleptric mic_ Ok, there are quite a few options on how to archive that. Unfortunately the upgrade from 2y -> 3.x is pretty rough
# Jul 18th 2017, 15:29 jeremyharris just something to keep in mind
# Jul 18th 2017, 15:29 jeremyharris seeds*
# Jul 18th 2017, 15:29 jeremyharris sees are run each time though, they aren’t tracked like migrations
# Jul 18th 2017, 15:28 awi if ($this->Users->delete($user)) { will go to else when i put $event->stopPropagation() ? jeremyharris
# Jul 18th 2017, 15:28 genellern You can, but you should consider seedss
# Jul 18th 2017, 15:28 adriencs can you add data with Migrations ?
# Jul 18th 2017, 15:27 mic_ sorry, but backend is old.
# Jul 18th 2017, 15:27 mic_ frontend is new (BS+jquery), but backend is. The app is relatively large, and upgrade costs are not peanuts, hence consideration.
# Jul 18th 2017, 15:25 cleptric mic_ How big is your app?
# Jul 18th 2017, 15:25 sonu-nk yes.. :)
# Jul 18th 2017, 15:25 mic_ did anybody here upgrade from 1.2/1.3 to 2.x or 3.x? What would be the best strategy? (I want 1.2 -> 1.3 -> 2.10 and then decide whether to axe/start from scratch)
# Jul 18th 2017, 15:24 cleptric Ok, then use the feature I mentioned above your question :slightly_smiling_face:
# Jul 18th 2017, 15:24 sonu-nk suppose i want to shift my project on another host. now i cant install database there. but i want a command which can generate migration files for me.. so that i can run same migration file on another server and my datbase ready
# Jul 18th 2017, 15:24 cleptric If so, use this https://book.cakephp.org/3.0/en/migrations.html#generating-migrations-from-an-existing-database
# Jul 18th 2017, 15:23 cleptric Like an Initial migration?
# Jul 18th 2017, 15:23 cleptric You want a migration that contains the whole database?
# Jul 18th 2017, 15:22 cleptric What do you want to do exactly? :slightly_smiling_face:
# Jul 18th 2017, 15:22 sonu-nk @cleptric https://book.cakephp.org/3.0/en/migrations.html#syntax i also saw that one.. but that one require to add table fields and datatype as command arguments
# Jul 18th 2017, 15:22 jeremyharris though I’m not sure that’d be the best idea :slightly_smiling_face: