Mercurial > hg > fapweb
comparison dbdefs.inc.php @ 1115:24e6915fc0fb
Move database field length definitions from msite.inc.php to dbdefs.inc.php
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 Oct 2019 10:33:39 +0300 |
parents | 51f24cb35fc8 |
children | b2bca5f6d0ff |
comparison
equal
deleted
inserted
replaced
1114:51f24cb35fc8 | 1115:24e6915fc0fb |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 $dbVersion = 31; | 3 $dbVersion = 31; |
4 | |
5 // | |
6 // Define sizes of database fields, see createdb.php | |
7 // and also the places where input is validated. | |
8 // | |
9 define("SQL_LEN_USERNAME", 32); | |
10 define("SQL_LEN_GROUPS", 64); | |
11 define("SQL_LEN_ONELINER", 64); | |
12 define("SQL_LEN_EMAIL", 80); | |
13 define("SQL_LEN_REGHOST", 128); | |
14 | |
15 define("SQL_LEN_NEWS_TITLE", 128); | |
16 define("SQL_LEN_NEWS_TEXT", 4096); | |
17 define("SQL_LEN_NEWS_AUTHOR", 64); | |
18 | |
19 define("SQL_LEN_COMPO_NAME", 128); | |
20 define("SQL_LEN_COMPO_DESC", 4096); | |
21 define("SQL_LEN_COMPO_NOTES", 4096); | |
22 define("SQL_LEN_COMPO_PATH", 128); | |
23 | |
24 define("SQL_LEN_ENTRY_NAME", 64); | |
25 define("SQL_LEN_ENTRY_AUTHOR", 64); | |
26 define("SQL_LEN_ENTRY_FILENAME", 128); | |
27 define("SQL_LEN_ENTRY_INFO", 50*4); | |
28 define("SQL_LEN_ENTRY_NOTES", 1024); | |
29 define("SQL_LEN_ENTRY_PREVIEW_FILE", 128); | |
30 | |
31 define("SQL_LEN_DISP_SLIDE_TITLE", 64); | |
32 define("SQL_LEN_DISP_SLIDE_TEXT", 4096); | |
33 define("SQL_LEN_ROT_LIST_NAME", 128); | |
34 | |
35 define("SQL_LEN_USERKEY", 64); | |
36 | |
4 | 37 |
5 // | 38 // |
6 // Site settings and defaults we put in | 39 // Site settings and defaults we put in |
7 // | 40 // |
8 $siteSettingsGroups = [ | 41 $siteSettingsGroups = [ |