kirrg001
6f6c8f4521
Import lib/common only
...
refs #9178
- avoid importing 4 modules (logging, errors, events and i18n)
- simply require common in each file
2017-12-12 10:28:13 +01:00
kirrg001
ac2578b419
Moved errors,logging,i18n and events to lib/common
...
refs #9178
2017-12-12 10:28:13 +01:00
kirrg001
41c9db30b5
Debug: MySQL logging hook
...
no issue
2017-10-04 10:05:35 +01:00
Katharina Irrgang
32a5982430
✨ utf8mb4 support ( #7409 )
...
closes #5519 , closes #6197
- default encoding is utf8mb4 instead of utf8
- support emojis
- read here why: http://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html
- read here why: https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-conversion.html
2016-09-20 15:59:34 +01:00
kirrg001
8115d83782
🔥 remove postgres support
...
refs #1333 , refs #5878 , refs #5321
2016-09-20 15:59:34 +01:00
kirrg001
34e48dc49a
🎨 🔦 do not append isPostgreSQL to config
...
refs #6982
- we cannot add functions to nconf
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
0ae0a0b490
🎨 change how we get and set config
...
refs #6982
- a replace for all config usages
- always use config.get or config.set
- this a pure replacement, no logic has changed
[ci skip]
2016-09-20 15:59:34 +01:00
Katharina Irrgang
6e1bd2838e
improvement: migrations ( #7000 )
...
closes #6972 , #6574
- run each database version as top level transaction
- run migrations in correct order
2016-07-14 11:59:42 +01:00
kirrg001
901c9d75a0
improvement: improve db/connection.js readability
2016-06-10 07:08:02 +02:00
Hannah Wolfe
80a79172c4
Revert "Revert "Force UTC at process level""
2016-06-03 09:06:18 +01:00
Hannah Wolfe
78e693f469
Revert "Force UTC at process level"
2016-06-02 14:38:02 +01:00
kirrg001
ec176c243a
Force UTC at process level
...
issues #6406 #6399
- all dates are stored as UTC with this commit
- use moment.tz.setDefault('UTC')
- add migration file to recalculate local datetimes to UTC
- store all dates in same format into our three supported databases
- add option to remeber migrations inside settings (core)
- support DST offset for migration
- ensure we force UTC in test env
- run whole migration as transaction
- extend: Settings.findOne function
2016-06-02 13:23:09 +02:00
Hannah Wolfe
57271878c0
Make it possible to override useNullAsDefault
...
refs #6623 , #6637
- this was supposed to be in the original
2016-03-24 16:34:48 +00:00
Hannah Wolfe
8c74f55b36
Disable knex useNullAsDefault warning
...
refs #6623
- automatically set useNullAsDefault to false for sqlite3 so that we don't get a warning
- we should *not* be relying on the behaviour of interpretting undefined anywhere, so it is correct that an error should be output if this happens so that we can fix the bad behaviour
2016-03-24 12:49:06 +00:00
Hannah Wolfe
1c85650108
Move db connection out of config
...
refs #5047
- database connections are not configuration
2016-02-12 13:56:23 +00:00