mrmBot-Matrix/utils/database
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
..
dummy.js Make broadcasts persistent, fix Postgres database upgrades, fix image slash commands with text not working in DMs 2022-10-25 12:37:55 -05:00
postgresql.js simplify postgres and sqlite database initialization, remove psqlinit.sh (#331) 2022-11-26 15:31:00 -06:00
sqlite.js simplify postgres and sqlite database initialization, remove psqlinit.sh (#331) 2022-11-26 15:31:00 -06:00