mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 20:13:45 +01:00
Improves note deletions (#25460)
* Improves not deletions * balls * balls the second
This commit is contained in:
@@ -404,8 +404,11 @@ CREATE TABLE `notes` (
|
||||
`server` varchar(50) NOT NULL,
|
||||
`crew_playtime` mediumint(8) UNSIGNED DEFAULT '0',
|
||||
`automated` TINYINT(3) UNSIGNED NULL DEFAULT '0',
|
||||
`deleted` TINYINT(4) NOT NULL DEFAULT '0',
|
||||
`deletedby` VARCHAR(32) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `ckey` (`ckey`)
|
||||
KEY `ckey` (`ckey`),
|
||||
KEY `deleted` (`deleted`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Updating DB from 55-56 ~AffectedArc07
|
||||
# Adds a new column to the notes table for tracking deleted notes
|
||||
ALTER TABLE `notes`
|
||||
ADD COLUMN `deleted` TINYINT NOT NULL DEFAULT 0 AFTER `automated`,
|
||||
ADD COLUMN `deletedby` VARCHAR(32) NULL DEFAULT NULL AFTER `deleted`,
|
||||
ADD INDEX `deleted` (`deleted`);
|
||||
|
||||
Reference in New Issue
Block a user