diff options
author | emkael <emkael@tlen.pl> | 2019-11-09 11:18:04 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-11-09 11:18:04 +0100 |
commit | 19a9bbbb5b44cce3411fd1452096b270d6441b13 (patch) | |
tree | 7102b412c2e2591e4c3feca3e89509ef158fe818 /docs | |
parent | 7c1d49570f36bd334fd0a11f87a3d200bf5480df (diff) |
Converting players database to baza2.csv format
Diffstat (limited to 'docs')
-rw-r--r-- | docs/convert-to-baza2.csv.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/convert-to-baza2.csv.sql b/docs/convert-to-baza2.csv.sql new file mode 100644 index 0000000..1b62172 --- /dev/null +++ b/docs/convert-to-baza2.csv.sql @@ -0,0 +1,5 @@ +ALTER TABLE `players` + ADD COLUMN `gender` varchar(1) COLLATE utf8_unicode_520_ci NOT NULL + AFTER `region`; +UPDATE `players` SET `gender` = 'K', `flags` = SUBSTRING(`flags` FROM 2) WHERE flags LIKE 'K%'; +UPDATE `players` SET `gender` = 'M' WHERE gender = ''; |