Adds public notes (#28373)

* Adds public notes

* oops sorry CI

* AA review

* head of staff requests

* darkmode + disclaimer
This commit is contained in:
Contrabang
2025-03-30 19:00:46 +00:00
committed by GitHub
parent cbd53f936a
commit 808553727c
7 changed files with 130 additions and 11 deletions
+3 -1
View File
@@ -413,9 +413,11 @@ CREATE TABLE `notes` (
`automated` TINYINT(3) UNSIGNED NULL DEFAULT '0',
`deleted` TINYINT(4) NOT NULL DEFAULT '0',
`deletedby` VARCHAR(32) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`public` TINYINT(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `ckey` (`ckey`),
KEY `deleted` (`deleted`)
KEY `deleted` (`deleted`),
KEY `public` (`public`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
+5
View File
@@ -0,0 +1,5 @@
# Updating DB from 64-65 ~Contrabang
# Adds a new column to the notes table for public notes
ALTER TABLE `notes`
ADD COLUMN `public` TINYINT NOT NULL DEFAULT 0 AFTER `deletedby`,
ADD INDEX `public` (`public`);