infra/main: add databases for matrix migration

This commit is contained in:
Danny Grove 2024-01-15 15:12:45 -08:00
parent 1b6e5156f4
commit e82185c247
Signed by: drgrove
GPG Key ID: E1F4160251DB4C2E
1 changed files with 15 additions and 0 deletions

View File

@ -63,6 +63,21 @@ module "digitalocean_database_cluster" {
}, {
name = "forgejo",
create_default_superuser = true,
}, {
# We're creating this database, but then need to delete and recreate manually with LOCALE=C. Otherwise synapse won't work
# CREATE DATABASE synapse WITH template=template0 owner=doadmin locale="C" encoding=UTF8;
# GRANT ALL ON DATABASE synapse TO synapse;
name = "synapse",
create_default_superuser = true,
}, {
name = "telegram",
create_default_superuser = true,
}, {
name = "slack",
create_default_superuser = true,
}, {
name = "media_repo",
create_default_superuser = true,
}]
vpc_id = digitalocean_vpc.main.id