mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-12 14:55:22 +00:00
pgimport readme
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user