mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
Issue 3015 - store timestamp when password is reset (#3863)
* Added few unsigned to ints in order to get rid of warnings. Added column to users table, for when password is changed(issue#3015). Moved password length check to separate method, to make it cleaner. * Added migration file and changed schema version to 27 due to servatrice.sql schema modification. * Make password length configurable.
This commit is contained in:
parent
e4c98e2ab8
commit
cd431594e2
10 changed files with 30 additions and 8 deletions
5
servatrice/migrations/servatrice_0026_to_0027.sql
Normal file
5
servatrice/migrations/servatrice_0026_to_0027.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-- Servatrice db migration from version 26 to version 27
|
||||
|
||||
ALTER TABLE cockatrice_users ADD COLUMN passwordLastChangedDate datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
|
||||
|
||||
UPDATE cockatrice_schema_version SET version=27 WHERE version=26;
|
||||
Loading…
Add table
Add a link
Reference in a new issue