# |
Apr 24th 2019, 17:20 |
admad |
*MySQL not myself :) |
# |
Apr 24th 2019, 17:20 |
admad |
Because tinyint(1) is used to emulate boolean in myself since it doesn't have actual boolean type |
# |
Apr 24th 2019, 17:20 |
dereuromark |
oh geeze |
# |
Apr 24th 2019, 17:18 |
asdfgh |
why should i use INT or something bigger thatn tinyint if the table is so small ? |
# |
Apr 24th 2019, 17:18 |
dereuromark |
even for 1 entry only |
# |
Apr 24th 2019, 17:18 |
dereuromark |
doesnt matter |
# |
Apr 24th 2019, 17:18 |
asdfgh |
i will never change it |
# |
Apr 24th 2019, 17:18 |
asdfgh |
it has 100 records |
# |
Apr 24th 2019, 17:18 |
asdfgh |
dereuromark it is a fixed table |
# |
Apr 24th 2019, 17:13 |
dereuromark |
first rule: dont nano opt. prematurely |
# |
Apr 24th 2019, 17:09 |
asdfgh |
why is it wrong ? |
# |
Apr 24th 2019, 17:09 |
asdfgh |
it is a very small table |
# |
Apr 24th 2019, 17:09 |
asdfgh |
neon1024 ? why ? |
# |
Apr 24th 2019, 16:56 |
neon1024 |
I would then suggest that your database schema is setup incorrectly. Especially if your `id` column is `tinyint` :O |
# |
Apr 24th 2019, 16:55 |
neon1024 |
@asdfgh If you’re generating a snapshot, then it’s reading from your database, not generating one |
# |
Apr 24th 2019, 16:15 |
asdfgh |
neon1024 i tried with migrations 2.1.1 (the last version) but i alwyas see ->addColumn('id', 'tinyinteger' <--- |
# |
Apr 24th 2019, 16:07 |
yamcomnet |
im trying to disable Csrf. |
# |
Apr 24th 2019, 16:07 |
yamcomnet |
public function beforeFilter(Event $event) { parent::beforeFilter($event); $test = $this->eventManager()->off($this->Csrf); #debug($test); $this->Security->setConfig('unlockedActions', ['getPortsByCountry','newEntryStep1']); if (in_array($this->request->action, ['getPortsByCountry','newEntryStep1'])) { } } |
# |
Apr 24th 2019, 16:07 |
yamcomnet |
I have activated Security component and CSRF middleware. Seems to be working. Now i have problem for disabling it for some actions. I do controller beforeFilter like this. No Joy :( |
# |
Apr 24th 2019, 16:06 |
asdfgh |
when i have installed it |
# |
Apr 24th 2019, 16:06 |
asdfgh |
it comes with cakephp/app |
# |
Apr 24th 2019, 16:05 |
asdfgh |
old ? |
# |
Apr 24th 2019, 16:05 |
asdfgh |
"cakephp/migrations": "^2.0.0", |
# |
Apr 24th 2019, 16:05 |
asdfgh |
neon1024 no |
# |
Apr 24th 2019, 16:04 |
neon1024 |
Hometime! :wave: |
# |
Apr 24th 2019, 16:04 |
neon1024 |
https://book.cakephp.org/3.0/en/phinx/migrations.html#working-with-columns |
# |
Apr 24th 2019, 16:04 |
neon1024 |
LMGTFY |
# |
Apr 24th 2019, 16:03 |
neon1024 |
Well it might have been generated in an older version of the migrations plugin perhaps? |
# |
Apr 24th 2019, 16:02 |
asdfgh |
neon1024 ok so our migration_snapshot is bugged |
# |
Apr 24th 2019, 16:01 |
neon1024 |
I even think it’s a pseudo-type in MySQL actually :thinking_face: |
# |
Apr 24th 2019, 16:01 |
neon1024 |
It’s just not a valid type in Phinx :slightly_smiling_face: |
# |
Apr 24th 2019, 16:01 |
neon1024 |
Nope |
# |
Apr 24th 2019, 16:00 |
asdfgh |
is this tinyinteger error a bug? |
# |
Apr 24th 2019, 15:57 |
neon1024 |
I think the ajax voting might be a good one to try out for bug finding |
# |
Apr 24th 2019, 15:56 |
neon1024 |
I pushed my code up though |
# |
Apr 24th 2019, 15:56 |
neon1024 |
However I need to build a new feature for another project now |
# |
Apr 24th 2019, 15:56 |
neon1024 |
Me too! |
# |
Apr 24th 2019, 15:48 |
admad |
BTW I was hoping you would find more 4.x bugs for us to fix :P |
# |
Apr 24th 2019, 15:46 |
admad |
You rang? |
# |
Apr 24th 2019, 15:29 |
neon1024 |
At least until ADmad comes back |
# |
Apr 24th 2019, 15:29 |
neon1024 |
In the comfy chair! |