1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

54 Commits

Author SHA1 Message Date
Nick Liu
1c75486642
Permissive numeric field validation in db_verify
db_verify::diffStructurePermissive() now checks for all MySQL/MariaDB numeric
types and permissively allows the expected and actual default values to be
strings rather than numerical.

Fixes: #3011
Related: #2998
2018-01-28 05:59:51 -06:00
Nick Liu
a397b80640
Fixed regression: db_verify distinguish results
Regression in #2999 prevents db_verify from distinguishing fields from indices

This prevents database migrations where both the fields and the indices of a
field need to be updated in one migration.

This commit fixes that.

Fixes: #3001
2018-01-23 14:09:48 -06:00
Nick Liu
3e2cdd5c9e
Refactored away duplicate code in db_verify
Hopefully Code Climate likes this one better
2018-01-23 10:46:39 -06:00
Nick Liu
c959610f7d
Fixed regression from 9a5ac5b
Regression fixed: Diff wasn't being set
2018-01-23 08:59:39 -06:00
Nick Liu
9a5ac5b21a
Permissive field validation in db_verify
Even if it's a new installation of e107, `db_verify` will be too strict in
validating database field defaults that are equivalent to each other.

This can happen on some MySQL or MariaDB servers that correct the field
definitions, which were not strictly correct in the table structures built into
e107 in the first place.

This commit introduces db_verify::validateFieldPermissive(), a
backwards-compatible way to validate database field defaults.  It works
regardless of whether the MySQL server stores a corrected representation of the
schema and does not require fixing the schema in any existing table structure
files.

Fixes: #2998
2018-01-23 07:48:24 -06:00
Cameron
cd123977bd Fixed #2909 - SQL Index validation issue. 2017-12-10 12:54:14 -08:00
Cameron
af959b0c00 Issue #1936 Fix for the 'stuck' database update button on core update page. Temporarily modify core_sql.php to test. 2017-11-15 14:48:12 -08:00
Cameron
caee889b7f Fixes Plugin Database structure update detection. 2017-04-21 14:21:29 -07:00
Cameron
645bc2a791 Renamed methods. 2017-02-03 13:02:08 -08:00
Cameron
612f16127c Cache DBVerify table info for 15 mins (unless debug is active) - speed up admin dashboard. 2017-02-03 11:34:14 -08:00
Cameron
630fd5fb57 Clear theme meta cache after installation. 2017-01-30 07:52:25 -08:00
OTroccaz
0008d6b0ab Just a missing parenthesis 2017-01-30 10:18:04 +01:00
Cameron
b6d9507aca Optimization 2017-01-29 18:43:52 -08:00
Cameron
43d0211590 Code cleanup: deprecated include_lan() 2017-01-23 09:41:23 -08:00
Cameron
bd8c42e4b3 Reduce queries while using db_verify. 2017-01-07 11:18:32 -08:00
Cameron
2a14308600 Fixes #1762 - Media-Manager Youtube thumbnail should use https. Removed debug info on db_verify. Hide carousel navigation when only 1 slide present. 2016-07-06 09:58:17 -07:00
Cameron
fdfd60419b Improved DB-Verify debug information and problem detection. 2016-04-27 09:09:51 -07:00
Cameron
486f3d4961 Issue #1356 - PHP7 Fixes. 2016-02-14 12:15:55 -08:00
Cameron
9de74a9149 Fixes #1255 Database Verification false positive. 2016-01-30 17:11:32 -08:00
tgtje
9b08a4d991 text to LAN issue #6 2015-11-01 15:44:42 +01:00
Cameron
cffb369751 Issue #1109, Fixes #830, Fixes #731, Fixes #710, Fixes #608, Fixes #1012 : v1 -> v2 Upgrade-Routine fixes (including forum plugin) 2015-08-24 17:39:28 -07:00
Cameron
2d337c28aa Plugin Builder Bootstrap3 styling fixes. PDO Mysql fix in db verification class. 2015-07-29 00:14:17 -07:00
Cameron
23a5be23eb Fixes #1020 - checkall was failing. 2015-07-18 20:40:14 -07:00
Cameron
ae9585f0da Fixes #1123 - PHP Warning. 2015-07-10 14:24:39 -07:00
Cameron
aded604827 Issue #970 - Upgrade/cleanup of plugin table installation routine. 2015-04-24 19:03:35 -07:00
Cameron
027a74f5b0 Code cleanup 2015-02-15 02:37:36 -08:00
Cameron
cec216c613 Removed PHP warnings. Added Simple e_url.php redirect list to admin area. Removed debug info from db-verify. 2015-02-03 12:23:03 -08:00
Cameron
fb22dc7b11 PHP Warning removal. 2015-01-28 01:46:49 -08:00
Cameron
a35f7ef171 Upgrade routine now separates non-core plugin sql changes into their own area. 2015-01-27 13:00:33 -08:00
Cameron
23b3e7a4aa Message-handler title fix. 2013-05-17 18:18:07 -07:00
Cameron
a9c43432cc Improved logging of the upgrade process. 2013-05-12 20:56:35 -07:00
Cameron
6963333389 Use MySQL class during db_verify 2013-05-08 17:09:58 -07:00
Cameron
a8fc30016c Issue #235 - Database Utility fixes. 2013-05-04 19:59:54 -07:00
Cameron
792c5eb628 Notice and Warning removals 2013-04-15 19:46:35 -07:00
Cameron
6f8481e528 Update routine improvements. Check for plugin xxxx_setup.php during db-verify 2013-03-10 18:42:54 -07:00
Cameron
ec8c543751 Resolves SQL parsing issue which arises when field-name == field-type 2013-02-08 10:49:22 -08:00
SecretR
ca1e0c5700 minor SQL parser improvements 2013-02-08 11:50:05 +02:00
Cameron
972dba3037 Moved e107_admin/sql/core_sql.php to e107_core/sql/core_sql.php 2013-01-23 13:23:10 -08:00
Cameron
f63fcb61a8 Notice removal and default styling fixes. 2012-12-16 14:28:30 -08:00
Tijn Kuyper
5290bb8ea4 More notice removal 2012-12-08 13:52:05 +01:00
Cameron
df2a903e62 Upgrade Fixes and notice removals. 2012-12-07 15:16:42 -08:00
Cameron
a874b87a7f Plugin Builder refinements and admin-ui 'template' added to banlist and rss for later use. 2012-12-06 21:41:53 -08:00
Cameron
e1ed7b8f6a SimplerParse() fix. Db-verify fix for MPREFIX inclusion in xxxx_sql.php files. 2012-12-02 17:30:41 -08:00
Cameron
d892fb0a85 Admin GUI refinements 2012-11-26 14:41:32 -08:00
CaMer0n
d1975b25cf Only display debug info on db-verify page. 2012-11-03 00:29:55 +00:00
CaMer0n
95ae8d911d Bugfix: should fix the db-verify issue with table field-names containing 'char' 2012-11-02 20:28:49 +00:00
CaMer0n
c3cd3ccc3b Bugfix - sql table data extraction would fail under some circumstances. 2012-11-02 19:54:50 +00:00
CaMer0n
8653c34121 Fix false matches when table-name contains field-type characters. 2012-08-18 02:46:57 +00:00
CaMer0n
629f7db1ab More fixes and Media Manager work - esp. file upload. 2012-05-22 13:32:49 +00:00
CaMer0n
f8b32d89ce Javascript work, HTML cleanup, iconpicker through media-manager. 2012-05-17 05:09:59 +00:00