Replace leftover isComplete with theme
This commit is contained in:
parent
afb1a08187
commit
e196ddfdd0
|
@ -46,7 +46,7 @@ export const DEFAULT_DICTIONARY = {
|
||||||
allowDuplicates: false,
|
allowDuplicates: false,
|
||||||
caseSensitive: false,
|
caseSensitive: false,
|
||||||
sortByDefinition: false,
|
sortByDefinition: false,
|
||||||
isComplete: false,
|
theme: 'default',
|
||||||
isPublic: false,
|
isPublic: false,
|
||||||
},
|
},
|
||||||
lastUpdated: getTimestampInSeconds(),
|
lastUpdated: getTimestampInSeconds(),
|
||||||
|
|
|
@ -127,7 +127,7 @@ VALUES ($new_id, ?, ?, ?, ?)";
|
||||||
'allowDuplicates' => $result['allow_duplicates'] === '1' ? true : false,
|
'allowDuplicates' => $result['allow_duplicates'] === '1' ? true : false,
|
||||||
'caseSensitive' => $result['case_sensitive'] === '1' ? true : false,
|
'caseSensitive' => $result['case_sensitive'] === '1' ? true : false,
|
||||||
'sortByDefinition' => $result['sort_by_definition'] === '1' ? true : false,
|
'sortByDefinition' => $result['sort_by_definition'] === '1' ? true : false,
|
||||||
'isComplete' => false,
|
'theme' => $result['theme'],
|
||||||
'isPublic' => $result['is_public'] === '1' ? true : false,
|
'isPublic' => $result['is_public'] === '1' ? true : false,
|
||||||
),
|
),
|
||||||
'lastUpdated' => is_null($result['last_updated']) ? $result['created_on'] : $result['last_updated'],
|
'lastUpdated' => is_null($result['last_updated']) ? $result['created_on'] : $result['last_updated'],
|
||||||
|
@ -278,7 +278,7 @@ VALUES ($new_id, ?, ?, ?, ?)";
|
||||||
'allowDuplicates' => $result['allow_duplicates'] === '1' ? true : false,
|
'allowDuplicates' => $result['allow_duplicates'] === '1' ? true : false,
|
||||||
'caseSensitive' => $result['case_sensitive'] === '1' ? true : false,
|
'caseSensitive' => $result['case_sensitive'] === '1' ? true : false,
|
||||||
'sortByDefinition' => $result['sort_by_definition'] === '1' ? true : false,
|
'sortByDefinition' => $result['sort_by_definition'] === '1' ? true : false,
|
||||||
'isComplete' => false,
|
'theme' => $result['theme'],
|
||||||
'isPublic' => $result['is_public'] === '1' ? true : false,
|
'isPublic' => $result['is_public'] === '1' ? true : false,
|
||||||
),
|
),
|
||||||
'lastUpdated' => is_null($result['last_updated']) ? $result['created_on'] : $result['last_updated'],
|
'lastUpdated' => is_null($result['last_updated']) ? $result['created_on'] : $result['last_updated'],
|
||||||
|
@ -296,7 +296,7 @@ SET name=:name,
|
||||||
allow_duplicates=:allow_duplicates,
|
allow_duplicates=:allow_duplicates,
|
||||||
case_sensitive=:case_sensitive,
|
case_sensitive=:case_sensitive,
|
||||||
sort_by_definition=:sort_by_definition,
|
sort_by_definition=:sort_by_definition,
|
||||||
is_complete=:is_complete,
|
theme=:theme,
|
||||||
is_public=:is_public,
|
is_public=:is_public,
|
||||||
last_updated=:last_updated,
|
last_updated=:last_updated,
|
||||||
created_on=:created_on
|
created_on=:created_on
|
||||||
|
@ -310,7 +310,7 @@ WHERE user=$user AND id=$dictionary";
|
||||||
':allow_duplicates' => $dictionary_object['settings']['allowDuplicates'] ? 1 : 0,
|
':allow_duplicates' => $dictionary_object['settings']['allowDuplicates'] ? 1 : 0,
|
||||||
':case_sensitive' => $dictionary_object['settings']['caseSensitive'] ? 1 : 0,
|
':case_sensitive' => $dictionary_object['settings']['caseSensitive'] ? 1 : 0,
|
||||||
':sort_by_definition' => $dictionary_object['settings']['sortByDefinition'] ? 1 : 0,
|
':sort_by_definition' => $dictionary_object['settings']['sortByDefinition'] ? 1 : 0,
|
||||||
':is_complete' => 0,
|
':theme' => $dictionary_object['settings']['theme'],
|
||||||
':is_public' => $dictionary_object['settings']['isPublic'] ? 1 : 0,
|
':is_public' => $dictionary_object['settings']['isPublic'] ? 1 : 0,
|
||||||
':last_updated' => $dictionary_object['lastUpdated'],
|
':last_updated' => $dictionary_object['lastUpdated'],
|
||||||
':created_on' => $dictionary_object['createdOn'],
|
':created_on' => $dictionary_object['createdOn'],
|
||||||
|
|
|
@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS `dictionaries` (
|
||||||
`allow_duplicates` tinyint(1) NOT NULL DEFAULT 0,
|
`allow_duplicates` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
`case_sensitive` tinyint(1) NOT NULL DEFAULT 0,
|
`case_sensitive` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
`sort_by_definition` tinyint(1) NOT NULL DEFAULT 0,
|
`sort_by_definition` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
`is_complete` tinyint(1) NOT NULL DEFAULT 0,
|
`theme` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'default',
|
||||||
`is_public` tinyint(1) NOT NULL DEFAULT 0,
|
`is_public` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
`last_updated` int(11) DEFAULT NULL,
|
`last_updated` int(11) DEFAULT NULL,
|
||||||
`created_on` int(11) NOT NULL,
|
`created_on` int(11) NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue