From 50d4a8634f134c0d5276f7ed65d06fa9ddbf03a7 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Wed, 16 Apr 2025 11:26:37 -0400 Subject: Documentation fixes and blerg --- migrate.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'migrate.py') diff --git a/migrate.py b/migrate.py index c386a0e..1de40da 100755 --- a/migrate.py +++ b/migrate.py @@ -24,6 +24,7 @@ def cli(): @cli.command def install(): + """Installs a new database""" database.create_tables([NewUser, Post, Faccet]) username = click.prompt("Enter a user account name:", default="user", type=str) @@ -46,5 +47,13 @@ def install(): click.echo(styled) +@cli.command +def upgrade_schema(): + """Upgrade the database if needed""" + stub_msg = click.style("You are on the latest database", fg="white", bold=True) + click.echo(stub_msg) + exit(0) + + if __name__ == "__main__": cli() -- cgit 1.4.1-2-gfad0