mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-18 01:17:53 +00:00
pgimport readme
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
# pgimport
|
# 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
|
## 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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -33,7 +36,7 @@ var flags = []cli.Flag{
|
|||||||
func main() {
|
func main() {
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "pgimport",
|
Name: "pgimport",
|
||||||
Usage: "SQLite to PostgreSQL migration tool for ntfy",
|
Usage: "One-off SQLite to PostgreSQL migration script for ntfy",
|
||||||
UsageText: "pgimport [OPTIONS]",
|
UsageText: "pgimport [OPTIONS]",
|
||||||
Flags: flags,
|
Flags: flags,
|
||||||
Before: loadConfigFile("config", flags),
|
Before: loadConfigFile("config", flags),
|
||||||
|
|||||||
Reference in New Issue
Block a user