Skip to content

Commit 8217906

Browse files
Merge pull request #139 from RostislavDugin/develop
Merge develop into main
2 parents 1f5c9d3 + db71a5e commit 8217906

File tree

23 files changed

+1083
-124
lines changed

23 files changed

+1083
-124
lines changed

.github/workflows/ci-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ jobs:
144144
# testing Telegram
145145
TEST_TELEGRAM_BOT_TOKEN=${{ secrets.TEST_TELEGRAM_BOT_TOKEN }}
146146
TEST_TELEGRAM_CHAT_ID=${{ secrets.TEST_TELEGRAM_CHAT_ID }}
147+
# supabase
148+
TEST_SUPABASE_HOST=${{ secrets.TEST_SUPABASE_HOST }}
149+
TEST_SUPABASE_PORT=${{ secrets.TEST_SUPABASE_PORT }}
150+
TEST_SUPABASE_USERNAME=${{ secrets.TEST_SUPABASE_USERNAME }}
151+
TEST_SUPABASE_PASSWORD=${{ secrets.TEST_SUPABASE_PASSWORD }}
152+
TEST_SUPABASE_DATABASE=${{ secrets.TEST_SUPABASE_DATABASE }}
147153
EOF
148154
149155
- name: Start test containers

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Postgresus works seamlessly with both self-hosted PostgreSQL and cloud-managed d
9797

9898
### 📦 Installation <a href="https://postgresus.com/installation">(docs)</a>
9999

100-
You have three ways to install Postgresus:
100+
You have several ways to install Postgresus:
101101

102102
- Script (recommended)
103103
- Simple Docker run
@@ -115,7 +115,7 @@ You have three ways to install Postgresus: automated script (recommended), simpl
115115

116116
The installation script will:
117117

118-
- ✅ Install Docker with Docker Compose(if not already installed)
118+
- ✅ Install Docker with Docker Compose (if not already installed)
119119
- ✅ Set up Postgresus
120120
- ✅ Configure automatic startup on system reboot
121121

@@ -238,4 +238,4 @@ This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENS
238238

239239
## 🤝 Contributing
240240

241-
Contributions are welcome! Read <a href="https://postgresus.com/contributing">contributing guide</a> for more details, prioerities and rules are specified there. If you want to contribute, but don't know what and how - message me on Telegram [@rostislav_dugin](https://t.me/rostislav_dugin)
241+
Contributions are welcome! Read <a href="https://postgresus.com/contribute">contributing guide</a> for more details, priorities and rules are specified there. If you want to contribute, but don't know what and how - message me on Telegram [@rostislav_dugin](https://t.me/rostislav_dugin)

backend/.env.development.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ TEST_NAS_PORT=7006
3333
TEST_TELEGRAM_BOT_TOKEN=
3434
TEST_TELEGRAM_CHAT_ID=
3535
# testing Azure Blob Storage
36-
TEST_AZURITE_BLOB_PORT=10000
36+
TEST_AZURITE_BLOB_PORT=10000
37+
# supabase
38+
TEST_SUPABASE_HOST=
39+
TEST_SUPABASE_PORT=
40+
TEST_SUPABASE_USERNAME=
41+
TEST_SUPABASE_PASSWORD=
42+
TEST_SUPABASE_DATABASE=

backend/internal/config/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ type EnvVariables struct {
5858
// testing Telegram
5959
TestTelegramBotToken string `env:"TEST_TELEGRAM_BOT_TOKEN"`
6060
TestTelegramChatID string `env:"TEST_TELEGRAM_CHAT_ID"`
61+
62+
// testing Supabase
63+
TestSupabaseHost string `env:"TEST_SUPABASE_HOST"`
64+
TestSupabasePort string `env:"TEST_SUPABASE_PORT"`
65+
TestSupabaseUsername string `env:"TEST_SUPABASE_USERNAME"`
66+
TestSupabasePassword string `env:"TEST_SUPABASE_PASSWORD"`
67+
TestSupabaseDatabase string `env:"TEST_SUPABASE_DATABASE"`
6168
}
6269

6370
var (

backend/internal/features/backups/backups/usecases/postgresql/create_backup_uc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ func (uc *CreatePostgresqlBackupUsecase) buildPgDumpArgs(pg *pgtypes.PostgresqlD
334334
"--verbose",
335335
}
336336

337+
for _, schema := range pg.IncludeSchemas {
338+
args = append(args, "-n", schema)
339+
}
340+
337341
compressionArgs := uc.getCompressionArgs(pg.Version)
338342
return append(args, compressionArgs...)
339343
}

0 commit comments

Comments
 (0)