d976a192fb
Revamped the configuration system. If you have trouble installing this, try installing my fork of gopsutil with `go get` and delete the users_penalties table from the schema folder. That stuff will be cleaned up in the next commit. Fixed an issue with the links for the Uncategorised forum being broken. Swapped out NOW() for UTC_TIMESTAMP() in MySQL queries. We now get an error message when the server goes down for whatever reason. The template compiler now supports pointers. Swapped out shirou/gopsutil for a fork locked on an older and more stable commit of the same library. Fixed a bug where the preprocessor didn't play nice with empty CSS files. Added the site name to the navbar. Added more things to .gitignore Laid the foundations for the next commit.
12 lines
361 B
SQL
12 lines
361 B
SQL
CREATE TABLE `users_penalties` (
|
|
`uid` int not null,
|
|
`element_id` int not null,
|
|
`element_type` varchar(50) not null,
|
|
`overrides` text not null,
|
|
`mod_queue` boolean DEFAULT 0 not null,
|
|
`shadow_ban` boolean DEFAULT 0 not null,
|
|
`no_avatar` boolean DEFAULT 0 not null,
|
|
`issued_by` int not null,
|
|
`issued_at` datetime not null,
|
|
`expiry` duration not null
|
|
); |