mrmBot-Matrix/utils
samhza c00d518f6e
simplify postgres and sqlite database initialization, remove psqlinit.sh (#331)
Before this change, uninitialized databases would be initialized with the old
schema and then migrated to the latest version. After this change, unintialized
databases are initizialized with the latest database schema immediately, without
having to run any of the migrations. This change has no effect on existing
databases.

Before this change, Postgres database initialization was done manually using
utils/psqlinit.sh. This is inconsistent with SQLite, which the bot initializes
itself. It also requires shell access to the server running the Postgres
instance, which means it cannot be used on managed Postgres instances. After
this change, the bot initializes Postgres databases as it does with SQLite, and
utils/psqlinit.sh has been removed as it is now unecessary.
2022-11-26 15:31:00 -06:00
..
database simplify postgres and sqlite database initialization, remove psqlinit.sh (#331) 2022-11-26 15:31:00 -06:00
pagination Fix PostgreSQL broadcast column upgrade, make some changes to followup message handling 2022-10-30 00:17:36 -05:00
pm2 Remove Top.gg integration 2022-11-26 15:27:59 -06:00
awaitrejoin.js Fix some permission checks, fix avatar URLs 2022-09-23 23:50:59 -05:00
collections.js Added (hacky) message command support, lots of work to prepare for message content intent enforcement, improve broadcast, remove evalraw, update packages 2022-08-31 20:00:34 -05:00
convertpg.js Port to ESM modules (haha funny), removed cache request, many other changes that I forgot about 2021-08-19 09:19:14 -05:00
database.js Move database migration, removed guild modified times, added XM plugin to lavalink config 2022-02-21 18:55:25 -06:00
handler.js Remove "requires" command field, overhaul Lavalink connection, fix message objects not being properly sent 2022-10-11 10:46:10 -05:00
help.js Replace eris-fleet with a pm2-based cluster system, overhaul image handling, removed azure image api 2022-09-21 00:05:03 -05:00
image-runner.js Added nowplaying alias, update lava-xm-plugin, only require natives when processing images locally, reimplement cache limit 2022-08-22 12:44:25 -05:00
image.js Replace eris-fleet with a pm2-based cluster system, overhaul image handling, removed azure image api 2022-09-21 00:05:03 -05:00
imageConnection.js Load fonts directly from assets directory, fix image buffer issues 2022-09-22 23:44:54 -05:00
imagedetect.js Fix imagedetect on a single reply message 2022-10-12 22:23:16 -05:00
logger.js Replace eris-fleet with a pm2-based cluster system, overhaul image handling, removed azure image api 2022-09-21 00:05:03 -05:00
misc.js Properly detect PM2 manager process instead of using a hardcoded ID 2022-10-30 23:16:03 -05:00
parseCommand.js Make the em dash (—) also work when using options (#160) 2021-09-21 22:05:27 -05:00
soundplayer.js Update readme, attempt some things, update packages 2022-11-26 13:31:40 -06:00
tempimages.js Fixes for thread channels, voice commands, image handling, and snowflake, update packages 2022-09-27 14:46:07 -05:00
urlcheck.js Port to ESM modules (haha funny), removed cache request, many other changes that I forgot about 2021-08-19 09:19:14 -05:00
wrap.js Port to ESM modules (haha funny), removed cache request, many other changes that I forgot about 2021-08-19 09:19:14 -05:00