mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-15 07:35:49 -06:00
pgimport readme
This commit is contained in:
parent
bedbb121e4
commit
66449bd19b
2 changed files with 9 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
|||
# pgimport
|
||||
|
||||
Migrates ntfy data from SQLite to PostgreSQL.
|
||||
One-off migration script to import ntfy data from SQLite to PostgreSQL.
|
||||
|
||||
This is **not** a generic migration tool. It only works with specific SQLite schema versions
|
||||
(message cache v14, user db v6, web push v1) and their corresponding PostgreSQL schemas.
|
||||
If your database versions differ, this tool will refuse to run.
|
||||
|
||||
## Build
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
// pgimport is a one-off migration script to import ntfy data from SQLite to PostgreSQL.
|
||||
// It is not a generic migration tool. It expects specific schema versions for each database
|
||||
// (message cache v14, user db v6, web push v1) and will refuse to run if versions don't match.
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
@ -33,7 +36,7 @@ var flags = []cli.Flag{
|
|||
func main() {
|
||||
app := &cli.App{
|
||||
Name: "pgimport",
|
||||
Usage: "SQLite to PostgreSQL migration tool for ntfy",
|
||||
Usage: "One-off SQLite to PostgreSQL migration script for ntfy",
|
||||
UsageText: "pgimport [OPTIONS]",
|
||||
Flags: flags,
|
||||
Before: loadConfigFile("config", flags),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue