mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 18:11:47 +00:00
30 lines
1.6 KiB
Plaintext
30 lines
1.6 KiB
Plaintext
19 September 2014, by MrStonedOne
|
|
|
|
Removed erro_ from table names. dbconfig.txt has a option allowing you to change the prefix used in code, defaults to "erro_" if left out for legacy reasons.
|
|
|
|
If you are creating a new database and want to change the prefix, simply find and replace SS13_ to what ever you want (including nothing) and set the prefix value
|
|
|
|
Two schema files are now included, one with prefixes and one without.
|
|
|
|
If you have an existing database, and you want to rid your database of erros, you will have to rename all of the tables. A bit sql is included to do just that in errofreedatabase.sql Feel free to find and replace the prefix to what ever you want (or nothing)
|
|
|
|
----------------------------------------------------
|
|
|
|
4 November 2013, by Errorage
|
|
|
|
The column 'deleted' was added to the erro_library table. If set to anything other than null, the book is interpreted as deleted.
|
|
|
|
To update your database, execute the following code in phpmyadmin, mysql workbench or whatever program you use:
|
|
|
|
ALTER TABLE erro_library ADD COLUMN deleted TINYINT(1) NULL DEFAULT NULL AFTER datetime;
|
|
|
|
If you want to 'soft delete' a book (meaning it remains in the library, but isn't viewable by players), set the value in the 'deleted' column for the row to 1. To undelete, set it back to null. If you're making an admin tool to work with this, execute the following SQL statement to soft-delete the book with id someid:
|
|
|
|
UPDATE erro_library SET deleted = 1 WHERE id = someid
|
|
|
|
(Replace someid with the id of the book you want to soft delete.)
|
|
|
|
----------------------------------------------------
|
|
|
|
|