summaryrefslogtreecommitdiff
path: root/util/updates
AgeCommit message (Collapse)AuthorFilesLines
2015-01-28sql: Merge staff changes into /util/sql/ and rename staff.sql2.24Yorhel1-0/+67
So that the /util/sql/ files are in sync with the actual DB again.
2014-12-02Completely drop l_vnn column from VN infoYorhel1-0/+4
Used to link to a visual-novels.net review or something. Links have been hidden and dead since ages. No need to keep the column around.
2014-10-16Completely get rid of the old charedit perm flagYorhel1-0/+4
2014-10-16Hash session tokens with SHA-1 when storing in DBYorhel1-0/+6
This ensures that, if an attacker evers gets read access to the database, he will not be able to compromise any accounts. SHA-1 suffices here, because the data being hashed is a random 20 byte string. The search space is so damn large that you can't sanely brute force it, nor are rainbow tables any use at that scale. They're not salted. The password reset tokens are also hashed in the database and do include salt, but I've no idea why we did that.
2014-10-15SQL: Merge users.(passwd|salt) in one column + document valuesYorhel1-0/+6
It doesn't make a whole lot to separate the hashed password and the salt from each other, you need both to do anything with them, and from the database perspective they're both completely opaque strings only usable for direct comparison with other hashed strings. This change is mostly as preparation for switching to a proper key derivation function (sha256 isn't...) and to add support for longer and/or binary salt. Because the passwd field now needs to be interpreted in Perl, it's being passed around as a binary string rather than a hex-encoded value. API login is broken in this commit. I'll get to that.
2014-10-13SQL: Use enum to represent platformsYorhel1-0/+9
I believe I didn't do this conversion earlier (back when I converted the language types) because PostgreSQL didn't support dynamically adding new values to an existing enum back then, and modifying an enum was a huge pain. Recent versions do support this, so there's no reason to keep it as a string. ...I just felt like adding some churn to the code base.
2014-10-11SQL: Convert login_throttle.timeout to a timestamptzYorhel1-0/+4
Easier to work with in custom queries.
2014-08-29Throttle failed login attempts (10/day)Yorhel1-0/+6
2014-08-21Add Romanian languageYorhel1-0/+3
2013-09-16Added 960x600 resolutionYorhel1-1/+5
2013-09-14Added Arabic and Hebrew languagesYorhel1-1/+1
2013-01-05Screenshot uploader: Load stuff synchronously + removed processing flagYorhel1-0/+2
All the async stuff isn't necessary now that images are processed synchronously.
2013-01-05Don't use Multi for processing screenshotsYorhel1-0/+3
TODO: Get rid of the 'processing' flag and all the async loading of screenshot data in the screenshot uploader.
2013-01-05Don't use Multi for processing character imagesYorhel1-0/+3
2013-01-05Don't use Multi for processing VN cover imagesYorhel1-0/+6
I used to do this to avoid loading Image::Magick in each TUWF process, decreasing memory usage, and lowering the blocking time by avoiding too much processing. Memory isn't much of a problem nowadays, and processing images is fast enough, too, so this complexity isn't necessary anymore. (Character images and screenshots pending)
2012-07-24Add wishlist / VN list status options to VN list browserSpaceRanger1-0/+6
2012-03-27Added Indonesian languageYorhel1-2/+2
2012-01-10Allow one fractional digit for VN votesYorhel1-0/+15
The interface to set a non-integer vote isn't very nice, but at least it works. Or so I hope.
2012-01-09Added language for UkrainianYorhel1-0/+33
And added an update_2.23.sql file which now also includes the previously added indices. Currently, this update file can be run as often as you want, it doesn't make any noticable changes when you run it on a database that has already been updated. (i.e. I can update the main site without a new release)
2011-12-29Maintain VN search cache for hidden entries as wellYorhel1-0/+11
Required in order to search for hidden entries (obviously :P)
2011-08-23Added email confirmation to registration processYorhel1-0/+9
2011-08-22Removed support for pre-2.6 passwordsYorhel1-0/+4
Users who haven't logged in since 2009-08-09 will find that their passwords have been reset. They need to use the password recovery feature before logging in again.
2011-08-21Added 1280x960 screen resolutionYorhel1-0/+4
2011-04-30Replaced user ranks with a permission systemYorhel1-0/+13
This is far more flexible.
2011-04-29affiliates: +data column, hide hidden links, better browser, Multi fixesYorhel1-5/+2
2011-04-09affiliates: Added simple admin interface + default_prioYorhel1-0/+1
The lastfetch/price columns can't be modified at the moment.
2011-04-09affiliates: Added very basic support for sponsored "buy now" linksYorhel1-0/+19
2011-04-08Added char/tag/trait stats to database statistics boxYorhel1-0/+13
2011-04-08Generate dbedit/dbdel notifications on character editsYorhel1-0/+11
2011-03-20chardb: Fixed no-change-edit-bug + test data insertion errorYorhel1-4/+4
2011-03-19chardb: Synchronized DB changes with util/sql/* and dbgraph.plYorhel1-2/+0
2011-03-15chardb: Added list of instances to char pagesYorhel1-1/+12
2011-03-15chardb: Added main char field + editingYorhel1-1/+1
The field isn't used yet.
2011-02-27chardb: Allow specifying the order of trait groups +'sexual' trait flagYorhel1-0/+2
The sexual flag isn't used yet.
2011-02-22chardb: +char<->vn linking, +vn display on char pagesYorhel1-4/+5
2011-02-22chardb: +image quality, -other blood type, typo fix, +gender iconsYorhel1-4/+4
2011-02-21chardb: gender field + blood type/gender field compacting on char pageYorhel1-5/+39
2011-02-21chardb: char-by-trait lookup + trait usage count + tag-code sharingYorhel1-1/+13
I'll have to optimize the updating of traits_chars as soon as I have some data to test with. Also renamed tags.c_vns to c_items, to have it share the same name as traits.c_items. This makes it a lot easier to re-use code for both tags and traits, such as what I did with dbTagTree/dbTraitTree -> dbTTTree and the childtags() and parenttags() functions.
2011-02-20chardb: Added "group" property to traitsYorhel1-15/+19
It's more like a cache, and has some unintuitive problems when a trait is applied to multiple top-level traits. But this'll do the trick anyway.
2011-02-19chardb: Removed unique constraints from traits and traits_aliasesYorhel1-11/+48
This makes things somewhat simpler.
2011-02-19chardb: Added blood type + misc. fixes and improvementsYorhel1-3/+6
2011-02-16chardb: Added image to character entriesYorhel1-0/+3
2011-02-16chardb: Added character add/edit form + misc. fixesYorhel1-0/+2
2011-02-15chardb: Added char entry tables and updated the basic revision frameworkYorhel1-1/+69
The Perl code and SQL-revisioning code only handles the name, original, alias and desc fields at the moment. There is a basic /i+ and /i+.+ page for testing, which should have all the functionality required for the revisioning framework.
2011-02-14chardb: Made Multi aware of traitsYorhel1-0/+5
Added new trait notify and i+ id-matching
2011-02-13chardb: Added notes file and started implementing the traitsYorhel1-0/+26
2011-02-07Bugfix: don't generate listdel notify for the user who deletedYorhel1-0/+3
2011-02-04Added category field to tags (content/ero/technical)Yorhel1-0/+5
Not very useful at the moment, but will be used to improve several other things.
2011-01-03SQL: Added tags_vn.ignore column and updated queries to respect thisYorhel1-0/+8
This is the first step in adding support for overruling tag votes by moderators. Also removed some unused options from dbTagStats(); the tag-vote-stats-by-user pages have been removed in the previous VNDB update, which was the only page using these additional options.
2011-01-02Bugfix: allow a VN to be available for more than 7 platformsYorhel1-0/+3
This constraint was caused by the character length limit on vn.c_platforms. Trying to add or edit a release in such a way that a platform would be added to c_platforms would result in a 500.