Skip to content

Commit

Permalink
Reduce money name to 60 chars
Browse files Browse the repository at this point in the history
Based in max money leght size is 56
SELECT money_name, LENGTH(money_name) AS cant FROM `currency` ORDER BY cant DESC LIMIT 1
  • Loading branch information
gnovaro authored Nov 6, 2019
1 parent 53d037a commit 8dace7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4217-currency/001-4217_currency_structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--
CREATE TABLE `currency` (
`code` char(3) COLLATE utf8_unicode_ci NOT NULL,
`money_name` varchar(80) COLLATE utf8_unicode_ci NOT NULL,
`money_name` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`symbol` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Expand Down

0 comments on commit 8dace7f

Please sign in to comment.