Browse Source

Fixed typo and added new column to fediverse table

master
spla 1 year ago
parent
commit
59a94aeab2
  1. 4
      db-setup.py

4
db-setup.py

@ -138,11 +138,11 @@ print("Creating table...")
db = fediverse_db
db_user = fediverse_db_user
table = "world"
sql = "create table "+table+" (server varchar(200) PRIMARY KEY, federated_with varchar(200), updated_at timestamptz), saved_at timestamptz"
sql = "create table "+table+" (server varchar(200) PRIMARY KEY, federated_with varchar(200), updated_at timestamptz, saved_at timestamptz)"
create_table(db, db_user, table, sql)
table = "fediverse"
sql = "create table "+table+" (server varchar(200) PRIMARY KEY, users INT, updated_at timestamptz)"
sql = "create table "+table+" (server varchar(200) PRIMARY KEY, users INT, updated_at timestamptz, software varchar(15))"
create_table(db, db_user, table, sql)
table = "totals"

Loading…
Cancel
Save