gotosocial/internal
Terin Stock 8e80f983b3
[bugfix] use Exec to rename media_attachments (#498)
The `database/sql` package in the Go stdlib has two methods that can run
queries against the database driver: `Query` and `Exec`. When the query
returns rows, such as "SELECT", the package expects the use of `Query`,
and returns `*sql.Rows`. When the query does not return rows, the
package expects the use of `Exec`, which returns `sql.Result`.

This changeset corrects the "media_attachments" migration to using
`ExecContext`, as "ALTER TABLE" does not return rows.

Signed-off-by: Terin Stock <terinjokes@gmail.com>
2022-04-28 08:43:41 +01:00
..
ap [bugfix] Fix CWs not showing sometimes (#488) 2022-04-26 10:47:21 +02:00
api [bug] Fix status API / status web API being case sensitive (#481) 2022-04-24 14:24:43 +02:00
cache [chore] Update Go version to 1.18 (#444) 2022-04-02 15:40:09 +02:00
config [feature] Add log-db-queries config option (#465) 2022-04-18 16:47:11 +02:00
db [bugfix] use Exec to rename media_attachments (#498) 2022-04-28 08:43:41 +01:00
email [bug] Send plaintext emails to fix "message refused: Message is not RFC 2822 compliant" (#366) 2022-01-31 11:46:20 +01:00
federation [chore] Return more useful errors from auth failure (#494) 2022-04-26 18:10:11 +02:00
gotosocial test the media manager a bit, add shutdown logic 2022-01-10 18:36:09 +01:00
gtserror emoji code passing muster 2022-01-15 17:36:15 +01:00
gtsmodel [feature] Dereference remote mentions when the account is not already known (#442) 2022-03-29 11:54:56 +02:00
id change muchos things 2021-09-01 11:11:26 +02:00
log [bugfix] Trim log entries to 1700 chars before they enter syslog (#493) 2022-04-26 17:55:24 +02:00
media [bugfix] Allow processing of .png files where checksum is not correct (#487) 2022-04-25 14:45:44 +02:00
messages Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
oauth [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
oidc Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
processing [chore] Return more useful errors from auth failure (#494) 2022-04-26 18:10:11 +02:00
regexes Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
router [bugfix] Convert IDNs to punycode before using as session name (#458) 2022-04-16 13:09:42 +02:00
stream Fix streamed messages ending up in wrong timeline(s) (#325) 2021-11-22 19:03:21 +01:00
text Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00
trans Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
transport [bugfix] Use our own (Batch)Deliver implementation for federated messages (#466) 2022-04-18 17:17:05 +02:00
typeutils [bugfix] Fix CWs not showing sometimes (#488) 2022-04-26 10:47:21 +02:00
uris Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
util [feature] Dereference remote mentions when the account is not already known (#442) 2022-03-29 11:54:56 +02:00
validate [chore] Update Go version to 1.18 (#444) 2022-04-02 15:40:09 +02:00
visibility Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
web [feature] Web profile pages for accounts (#449) 2022-04-15 14:33:01 +02:00