* For the Direct Message History database, use gorm.io as ORM so that Postgres can be used instead of SQLite for bigger chat room instances. * In settings.toml: the new DatabaseType field defaults to 'sqlite3' but can be set to 'postgres' and use the credentials in the new PostgresDatabase field. * The DirectMessage table schema is also updated to deprecate the Timestamp int field in favor of a proper CreatedAt datetime field. Existing SQLite instances will upgrade their table in the background, converting Timestamp to CreatedAt and blanking out the legacy Timestamp column. * Fix some DB queries so when paginating your DMs history username list, sorting it by timestamp now works reliably. * For existing SQLite instances that want to switch to Postgres, use the scripts/sqlite2psql.py script to transfer your database over.
66 lines
2.8 KiB
Modula-2
66 lines
2.8 KiB
Modula-2
module git.kirsle.net/apps/barertc
|
|
|
|
go 1.23.0
|
|
|
|
toolchain go1.24.2
|
|
|
|
require (
|
|
git.kirsle.net/go/log v0.0.0-20240505021515-9c747daf9e9a
|
|
github.com/BurntSushi/toml v1.5.0
|
|
github.com/aichaos/rivescript-go v0.4.0
|
|
github.com/edwvee/exiffix v0.0.0-20240229113213-0dbb146775be
|
|
github.com/golang-jwt/jwt/v4 v4.5.2
|
|
github.com/google/uuid v1.6.0
|
|
github.com/mattn/go-shellwords v1.0.12
|
|
github.com/mattn/go-sqlite3 v1.14.28
|
|
github.com/microcosm-cc/bluemonday v1.0.27
|
|
github.com/pelletier/go-toml/v2 v2.2.4
|
|
github.com/shurcooL/github_flavored_markdown v0.0.0-20210228213109-c3a9aa474629
|
|
github.com/urfave/cli/v2 v2.27.7
|
|
golang.org/x/image v0.28.0
|
|
gorm.io/driver/postgres v1.6.0
|
|
gorm.io/driver/sqlite v1.6.0
|
|
gorm.io/gorm v1.30.0
|
|
nhooyr.io/websocket v1.8.17
|
|
)
|
|
|
|
require (
|
|
github.com/aymerick/douceur v0.2.0 // indirect
|
|
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
|
|
github.com/disintegration/imaging v1.6.2 // indirect
|
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
|
github.com/dop251/goja v0.0.0-20250630131328-58d95d85e994 // indirect
|
|
github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect
|
|
github.com/google/pprof v0.0.0-20250630185457-6e76a2b096b5 // indirect
|
|
github.com/gorilla/css v1.0.1 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/pgx/v5 v5.7.5 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/jinzhu/now v1.1.5 // indirect
|
|
github.com/klauspost/compress v1.18.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/russross/blackfriday v1.6.0 // indirect
|
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
|
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd // indirect
|
|
github.com/sergi/go-diff v1.4.0 // indirect
|
|
github.com/shurcooL/go v0.0.0-20200502201357-93f07166e636 // indirect
|
|
github.com/shurcooL/go-goon v1.0.0 // indirect
|
|
github.com/shurcooL/highlight_diff v0.0.0-20230708024848-22f825814995 // indirect
|
|
github.com/shurcooL/highlight_go v0.0.0-20230708025100-33e05792540a // indirect
|
|
github.com/shurcooL/octicon v0.0.0-20230705024016-66bff059edb8 // indirect
|
|
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
|
|
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
|
|
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
|
|
github.com/tomnomnom/xtermcolor v0.0.0-20160428124646-b78803f00a7e // indirect
|
|
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 // indirect
|
|
golang.org/x/crypto v0.39.0 // indirect
|
|
golang.org/x/net v0.41.0 // indirect
|
|
golang.org/x/sync v0.15.0 // indirect
|
|
golang.org/x/sys v0.33.0 // indirect
|
|
golang.org/x/term v0.32.0 // indirect
|
|
golang.org/x/text v0.26.0 // indirect
|
|
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
|
|
)
|