migrator

command
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Command migrator prepares the PostgreSQL of xtrader, the database of configs/config.yml, the one of the controller:

# the migrations of sql/migrations, then the seeds of sql/seeds (the
# Telegram bot off, the prompts and the agents of a new database, off and
# without their secrets, the news off), run again harmlessly; then the
# tokens of the calendar the agents kept each carried to the news
go run ./cmd/migrator -config configs/config.yml up

The settings live in the database only: the agents, their secrets, the users and Telegram are changed on the page of the settings of the dashboard. The controller never migrates: it checks the version of the schema when it starts, and asks for this command when it is behind.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL