Log message #4055130

# At Username Text
# Jul 21st 2017, 08:24 prophet bin\cake ?
# Jul 21st 2017, 08:22 sonu_nk ??
# Jul 21st 2017, 08:22 sonu_nk $ bin/cake --> No command 'bin' found, did you mean:
# Jul 21st 2017, 08:18 prophet I am using '->requirePresence('img', 'create')' as a validator rule. I expect that the presence is only required if a new record is added, but if i edit a record the img-field should not be required. But the required attribute of the input is set... So I guess I am misinterepreting the validation rule?!
# Jul 21st 2017, 07:56 sonu_nk i want to generate API keys for each user.. which is the best method ?
# Jul 21st 2017, 07:14 maymeow As of 1.6.4, the bake seed command allows you to create a seed file with data exported from your database by using the --data flag:
# Jul 21st 2017, 07:10 maymeow https://book.cakephp.org/3.0/en/migrations.html#generating-migrations-from-an-existing-database
# Jul 21st 2017, 07:08 birdy247 Is there a way to create a seed from data already in a database?
# Jul 21st 2017, 06:12 maymeow Hi. Houston we have problem... Anyone has running CakePHP app behind proxy?? i have created enviroment like this: `[CakePHP + NGINX] -------> [NGINX Reverse Proxy] <--------- [Internet]` When loading page its look like randomly loaded CSS styles. Anyone has this glitches?
# Jul 21st 2017, 05:04 dakota Sometimes
# Jul 21st 2017, 04:47 Rockwood any active here ?
# Jul 20th 2017, 23:34 dereuromark just dont make the alternative available :slightly_smiling_face: use apache or nginx rewrite to directly 301 to the https one when coming to the website
# Jul 20th 2017, 23:34 dereuromark by being https it will do that automatically
# Jul 20th 2017, 23:18 thomasnucleus How can I make it so any fullbase links generated with HtmlHelper or $this->redirects do https:// instead of http://
# Jul 20th 2017, 23:09 phpnut night
# Jul 20th 2017, 23:08 ericadeefox goodnight cakephp!!! :)
# Jul 20th 2017, 23:06 ericadeefox it'll easily be done in just one file
# Jul 20th 2017, 23:06 phpnut ok even easier
# Jul 20th 2017, 22:58 ericadeefox the new join table and fields exist, just need to migrate from old field to new join table, then delete the old field
# Jul 20th 2017, 22:57 phpnut yeah
# Jul 20th 2017, 22:57 phpnut write one to add the new fields
# Jul 20th 2017, 22:57 ericadeefox like the migrations plugin is its own example yea
# Jul 20th 2017, 22:57 phpnut it is really
# Jul 20th 2017, 22:57 ericadeefox looks like it'd just be really simple to write w migrations plugin
# Jul 20th 2017, 22:54 phpnut @ericadeefox let me see if I can find an example you could use
# Jul 20th 2017, 22:53 phpnut the flying to the moon part that is
# Jul 20th 2017, 22:52 phpnut take photos or it never happned
# Jul 20th 2017, 22:52 ericadeefox ^^I like this idea, I'll research this right now
# Jul 20th 2017, 22:52 ericadeefox and if done successfully I will save myself lots of headache, give myself a fun side project, earn the unfettered respect of my colleagues, fly to moon etc.
# Jul 20th 2017, 22:51 phpnut yup
# Jul 20th 2017, 22:51 ericadeefox many of these rows are possibly never gonna be used again, so missing some is a possibility. but yea writing a migration script, I'd just run the thing once and there we are
# Jul 20th 2017, 22:51 phpnut that is the best way
# Jul 20th 2017, 22:51 phpnut write a migration for it :slightly_smiling_face:
# Jul 20th 2017, 22:50 phpnut and you might miss some
# Jul 20th 2017, 22:50 phpnut you might be able to do it when a request is made, moving it to the new table but this could be a performance hit
# Jul 20th 2017, 22:50 ericadeefox ^^ahh, that's a good idea
# Jul 20th 2017, 22:50 phpnut so I would write a script that would convert it all
# Jul 20th 2017, 22:49 braeden :)
# Jul 20th 2017, 22:49 braeden (I have no idea)
# Jul 20th 2017, 22:49 braeden do it manually
# Jul 20th 2017, 22:48 ericadeefox so part of my current upgrade from 2.x to 3.x is phasing out a particular field in one table and creating a join table instead. anyone got tips on how to make this as painless as possible? cos all I got so far is "do it manually" :dizzy_face: