Changeset 815 in code
- Timestamp:
- Apr 28, 2023, 10:23:47 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.md
r813 r815 30 30 31 31 * Copyright (C) 2020 The soju Contributors 32 * Copyright (C) 2023-present Aoi K.32 * Copyright (C) 2023-present Izuru Yakumo 33 33 34 34 The code for `version.go` is stolen verbatim from one of [@prologic](https://git.mills.io/prologic)'s projects. It's probably under MIT -
trunk/contrib/casemap-logs.sh
r481 r815 3 3 # Converts a log dir to its case-mapped form. 4 4 # 5 # s ojuneeds to be stopped for this script to work properly. The script may5 # suika needs to be stopped for this script to work properly. The script may 6 6 # re-order messages that happened within the same second interval if merging 7 7 # two daily log files is necessary. -
trunk/db_postgres.go
r804 r815 26 26 27 27 const postgresSchema = ` 28 CREATE TABLE "User" (28 CREATE TABLE IF NOT EXISTS "User" ( 29 29 id SERIAL PRIMARY KEY, 30 30 username VARCHAR(255) NOT NULL UNIQUE, … … 36 36 CREATE TYPE sasl_mechanism AS ENUM ('PLAIN', 'EXTERNAL'); 37 37 38 CREATE TABLE "Network" (38 CREATE TABLE IF NOT EXISTS "Network" ( 39 39 id SERIAL PRIMARY KEY, 40 40 name VARCHAR(255), … … 56 56 ); 57 57 58 CREATE TABLE "Channel" (58 CREATE TABLE IF NOT EXISTS "Channel" ( 59 59 id SERIAL PRIMARY KEY, 60 60 network INTEGER NOT NULL REFERENCES "Network"(id) ON DELETE CASCADE, … … 70 70 ); 71 71 72 CREATE TABLE "DeliveryReceipt" (72 CREATE TABLE IF NOT EXISTS "DeliveryReceipt" ( 73 73 id SERIAL PRIMARY KEY, 74 74 network INTEGER NOT NULL REFERENCES "Network"(id) ON DELETE CASCADE, … … 79 79 ); 80 80 81 CREATE TABLE "ReadReceipt" (81 CREATE TABLE IF NOT EXISTS"ReadReceipt" ( 82 82 id SERIAL PRIMARY KEY, 83 83 network INTEGER NOT NULL REFERENCES "Network"(id) ON DELETE CASCADE, … … 99 99 `, 100 100 ` 101 CREATE TABLE "ReadReceipt" (101 CREATE TABLE IF NOT EXISTS "ReadReceipt" ( 102 102 id SERIAL PRIMARY KEY, 103 103 network INTEGER NOT NULL REFERENCES "Network"(id) ON DELETE CASCADE,
Note:
See TracChangeset
for help on using the changeset viewer.