Skip to content

Commit

Permalink
Merge pull request #1174 from bersace/docs
Browse files Browse the repository at this point in the history
Fix upgrade
  • Loading branch information
bersace authored Oct 24, 2022
2 parents fda0bd8 + e8449b2 commit a0be508
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/server_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Update temboard package with your [preferred installation method].
Then apply `repository` database upgrade with the following command:

``` shell
sudo -u temboard migratedb upgrade
sudo -u temboard temboard migratedb upgrade
```

### Flush tasks

Flush background tasks with the following command:

``` shell
sudo -u temboard tasks flush
sudo -u temboard temboard tasks flush
```


Expand All @@ -42,7 +42,7 @@ sudo -u temboard tasks flush
Generate signing key:

``` console
sudo -u temboard generate-key
sudo -u temboard temboard generate-key
```

### Start service
Expand Down
4 changes: 2 additions & 2 deletions ui/temboardui/model/versions/000_init.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE SCHEMA IF NOT EXISTS application;
CREATE TABLE IF NOT EXISTS application.schema_migration_log (
version TEXT UNIQUE NOT NULL PRIMARY KEY,
cdate TIMESTAMP DEFAULT NOW(),
comment TEXT
comment TEXT,
cdate TIMESTAMP DEFAULT NOW()
);
1 change: 1 addition & 0 deletions ui/temboardui/model/versions/007_drop-alembic.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DROP TABLE IF EXISTS "application"."alembic_version";
CREATE TABLE IF NOT EXISTS "application"."schema_migration_log" (
version TEXT UNIQUE NOT NULL PRIMARY KEY,
comment TEXT,
cdate TIMESTAMP DEFAULT NOW()
);

0 comments on commit a0be508

Please sign in to comment.