Log message #4051576

# At Username Text
# Jul 13th 2017, 09:20 chris-andre You see... ;) hehe. Soon.. soon
# Jul 13th 2017, 09:20 kareylo Oh god
# Jul 13th 2017, 09:18 savant CakePHP detects migrations are down, but tables exist
# Jul 13th 2017, 09:18 savant sure thats a good title
# Jul 13th 2017, 09:18 chris-andre Im still working on the title. "HEEELP! Migrations are down, but tables are up", how does that sound? ;P You see, I'm not a writer, even though I like it. And my english could/should be better.
# Jul 13th 2017, 09:15 kareylo Need to create mine too
# Jul 13th 2017, 09:14 savant welp
# Jul 13th 2017, 09:14 chris-andre @savant oh no, not yet
# Jul 13th 2017, 09:13 savant @chris-andre did you get a blog?
# Jul 13th 2017, 09:12 kareylo So, I got a great idea to put mine first
# Jul 13th 2017, 09:12 savant highly recommend for public slack :slightly_smiling_face:
# Jul 13th 2017, 09:12 savant it lets everyone know where I am located
# Jul 13th 2017, 09:11 kareylo @savant You put your country flag ? Tsss :P
# Jul 13th 2017, 08:34 hmic not worth the hassle on application code for me too - makes sense in behaviors and plugins, sure.
# Jul 13th 2017, 08:34 hmic spritz: the second one is still wrong, your would want to use the primaryKey instead of the static "id"
# Jul 13th 2017, 08:29 saeideng thanks
# Jul 13th 2017, 08:29 lorenzo the second way I use when I need to build complex nested conditions
# Jul 13th 2017, 08:28 lorenzo @spriz I also use the first version more often
# Jul 13th 2017, 08:28 savant https://getcomposer.org/doc/04-schema.md#extra
# Jul 13th 2017, 08:28 savant yes
# Jul 13th 2017, 08:28 saeideng you add extra value on composer.json?
# Jul 13th 2017, 08:26 saeideng probably I can detect by commit date
# Jul 13th 2017, 08:25 saeideng I have git for my program
# Jul 13th 2017, 08:25 saeideng :+1:
# Jul 13th 2017, 08:25 savant and then if I want to update, I just look at the diff on github and apply those changes
# Jul 13th 2017, 08:24 savant and set it to whatever I got the app version at
# Jul 13th 2017, 08:24 savant `extra.cakephp.app_version`
# Jul 13th 2017, 08:24 savant something like
# Jul 13th 2017, 08:24 savant I typically just add a value in my application
# Jul 13th 2017, 08:24 saeideng but i worry about other files
# Jul 13th 2017, 08:23 saeideng I know I should update bootstrap/middleware/index.php
# Jul 13th 2017, 08:23 saeideng but
# Jul 13th 2017, 08:23 saeideng nut I want update that
# Jul 13th 2017, 08:22 savant we dont set a version in composer.json
# Jul 13th 2017, 08:22 saeideng i want compare by latest version
# Jul 13th 2017, 08:22 saeideng how I can to detect cakephp/app version on my exist programs?
# Jul 13th 2017, 08:21 saeideng hi
# Jul 13th 2017, 08:16 marcusgoede i do that because i need a place where the bake shell can find the value with the translate function __(‘value’) and put it into the pot file. is there a better way with just one file to maintain?
# Jul 13th 2017, 08:10 hmic savants one is faster, this is more readable and flxible, i usually prefer using sprintf for string formatting
# Jul 13th 2017, 08:10 jarard01 hmic thanks - yes I just tried that and I'm going to use that approach
# Jul 13th 2017, 08:09 hmic jarard01, you could use printf number formatting too like sprintf('%010d', $int);