Andrew Dolgov
|
8f8ca49e4b
|
migrations: refuse to apply empty schema files
|
2021-03-04 10:13:29 +03:00 |
Andrew Dolgov
|
4ede76280b
|
migrations: don't try to use transactions on mysql
|
2021-03-04 09:43:12 +03:00 |
Andrew Dolgov
|
5eb0f3d640
|
bring back web dbupdate using new migrations system
|
2021-03-04 09:22:24 +03:00 |
Andrew Dolgov
|
c0fb0a5ec0
|
wip for db_migrations for core schema
|
2021-03-04 08:30:52 +03:00 |
Andrew Dolgov
|
921569e5da
|
support loading base schema as latest version
|
2021-03-04 07:26:05 +03:00 |
Andrew Dolgov
|
8256ab5dd9
|
wip: initial for db_migrations
|
2021-03-03 23:38:52 +03:00 |
Andrew Dolgov
|
d6629ed188
|
move dbupdater to db/updater; move base SCHEMA_VERSION constant inside db/updater class
|
2021-03-02 15:03:01 +03:00 |
Andrew Dolgov
|
2621fe7955
|
fix get_pref always using default profile; remove unneeded code from db_prefs
|
2021-02-25 12:53:20 +03:00 |
Andrew Dolgov
|
5c4223992f
|
db-prefs: minor cleanup, add warnings if unknown prefs are requested
|
2021-02-15 22:01:11 +03:00 |
Andrew Dolgov
|
5d42ce553f
|
drop legacy DB interface and related sanity checks
|
2021-02-15 16:55:55 +03:00 |
Andrew Dolgov
|
403dca154c
|
initial WIP for php8; bump php version requirement to 7.0
|
2021-02-05 23:41:32 +03:00 |
Andrew Dolgov
|
dee1614d0a
|
db_prefs: return null if requested key is unset
|
2019-04-10 13:39:55 +03:00 |
Andrew Dolgov
|
e31e9ae04d
|
db_prefs: don't report missing prefs if die_on_error is false
|
2019-04-10 13:39:07 +03:00 |
Andrew Dolgov
|
197e80add6
|
fix several issues related to profile being set to a non-numeric value
|
2018-12-04 10:47:01 +03:00 |
Andrew Dolgov
|
22366ccc5b
|
db_prefs: fix cache never being used on read(); remove unnecessary
sprintf()s to integer
|
2018-11-03 21:52:38 +03:00 |
Andrew Dolgov
|
7c6f7bb0aa
|
fix some minor issues found by code analyzer
|
2017-12-03 23:08:04 +03:00 |
Andrew Dolgov
|
cc9450c309
|
ccache, misc: fixes
feeds: start PDO transition
|
2017-12-01 19:42:02 +03:00 |
Andrew Dolgov
|
fbde19580c
|
db_prefs: PDO
|
2017-12-01 18:40:48 +03:00 |
Andrew Dolgov
|
ca82bb03c8
|
rm db_stmt
|
2017-11-30 11:53:21 +03:00 |
Andrew Dolgov
|
99bda9cc12
|
add some starting pdo glue
|
2017-11-30 10:47:42 +03:00 |
Andrew Dolgov
|
ab8daa0389
|
use mysqli_set_charset() to set MYSQL_CHARSET
|
2017-08-09 08:05:52 +03:00 |
Andrew Dolgov
|
e130b283a7
|
db prefs: ignore cache when preference requested for specified UID (in case cached value of a different profile is stored)
prefs: show (and set) enabled plugins for default profile only
|
2017-06-24 14:29:07 +03:00 |
Andrew Dolgov
|
891df34637
|
add some basic API unit tests
|
2017-04-27 00:24:17 +03:00 |
Andrew Dolgov
|
ea79a0e033
|
remove some redundant php closing tags
|
2017-04-26 20:24:18 +03:00 |
Andrew Dolgov
|
7b55001eee
|
fix various issues reported by static analysis
update gitlab-ci config
|
2017-04-26 15:29:22 +03:00 |
Andrew Dolgov
|
3c11159776
|
return result codes if DB connection or --debug-feed fails
|
2017-04-25 13:39:01 +03:00 |
Andrew Dolgov
|
e54eb40a8c
|
remove support for legacy mysql driver
|
2016-08-21 14:03:35 +03:00 |
Andrew Dolgov
|
a005ebb693
|
remove classes/db/api.php (shouldn't be there)
|
2016-08-19 18:33:48 +03:00 |
Heiko Adams
|
94e3a9ab44
|
Merge with master
|
2016-05-18 14:44:39 +02:00 |
Andrew Dolgov
|
977cea1438
|
actually check for failures properly in the dbupdater
|
2016-04-26 20:04:24 +03:00 |
Andrew Dolgov
|
cc43e19b44
|
error handler: do not log last query, truncate error message to a smaller length
|
2016-02-17 16:42:13 +03:00 |
Andrew Dolgov
|
475d762872
|
logger: record last query before logged error
|
2015-12-03 16:15:28 +03:00 |
Andrew Dolgov
|
ad9928a5cb
|
adjust cpu_tuple to 0.5
|
2015-08-11 20:28:04 +03:00 |
Andrew Dolgov
|
981059fd1f
|
postgresql: adjust cpu_tuple (experimental)
|
2015-08-11 20:04:54 +03:00 |
Andrew Dolgov
|
415a3b50c9
|
fix some minor typos and stuff
|
2015-06-07 18:41:18 +03:00 |
Andrew Dolgov
|
38f439708c
|
rollback current transaction before trying to report SQL query errors, properly save database error messages when logging query errors
|
2013-08-02 16:20:39 +04:00 |
Jonathan Bither
|
fbe135fb36
|
mysqli: We are using procedural mysqli so use mysqli_connect_error() instead of mysqli_error()
|
2013-05-30 10:45:47 -04:00 |
Andrew Dolgov
|
6a51939ee6
|
db-prefs: better error output for missing prefs, digest: hide DIGEST_ENABLE pref missing for unitialized users
|
2013-05-16 21:57:39 +04:00 |
Rasmus Lerdorf
|
6f7798b643
|
Fixing bugs found by static analysis
|
2013-05-07 00:35:10 -07:00 |
Andrew Dolgov
|
b20b6af0dc
|
only pass port to mysqli_connect when it is set
|
2013-04-19 07:58:27 +04:00 |
Andrew Dolgov
|
52d88392da
|
move db-prefs to OO
|
2013-04-18 12:00:01 +04:00 |
Andrew Dolgov
|
73663db316
|
support pgsql in pdo
|
2013-04-18 08:28:03 +04:00 |
Andrew Dolgov
|
9ee90455b8
|
add experimental support for PDO (_ENABLE_PDO)
|
2013-04-18 08:20:45 +04:00 |
Andrew Dolgov
|
e441b5837b
|
initial
|
2013-04-17 21:19:00 +04:00 |
Andrew Dolgov
|
ae35bb87eb
|
support mysqli when available
|
2013-04-17 18:56:13 +04:00 |
Andrew Dolgov
|
a42c55f02b
|
fix blank character after opening bracket in function calls
|
2013-04-17 18:34:18 +04:00 |
Andrew Dolgov
|
eefaa2df38
|
remove db_connect, db_close; CLI fixes
|
2013-04-17 17:00:35 +04:00 |
Andrew Dolgov
|
6322ac79a0
|
remove $link
|
2013-04-17 16:48:41 +04:00 |
Andrew Dolgov
|
aca75cb5cb
|
reinstate error handlers; better DB error reporting on failed queries
|
2013-04-17 16:05:54 +04:00 |
Andrew Dolgov
|
404e2e3603
|
more work on singleton-based DB
|
2013-04-17 15:36:48 +04:00 |