Skip to content

Commit

Permalink
Fixed #78: NO_ZERO_DATE mode no longer required.
Browse files Browse the repository at this point in the history
This was preventing some users to install the default database.
Some SQL code linting.
  • Loading branch information
HugoFara committed Nov 23, 2022
1 parent 19d3f2f commit a325106
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 25 deletions.
2 changes: 1 addition & 1 deletion backup_restore.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
`WoRomanization` varchar(100) DEFAULT NULL,
`WoSentence` varchar(1000) DEFAULT NULL,
`WoCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`WoStatusChanged` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`WoStatusChanged` timestamp NOT NULL DEFAULT '0000-00-00 00:00:01',
`WoTodayScore` double NOT NULL DEFAULT '0',
`WoTomorrowScore` double NOT NULL DEFAULT '0',
`WoRandom` double NOT NULL DEFAULT '0',
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ For git tags, official releases are marked like "v1.0.0", while unofficial ones
* ``save_setting_redirect.php`` moved to ``inc/save_setting_redirect.php``.
* Psalm static code analysis of all PHP files.
* JS: Some deprecated functions ``escape`` and ``unescape`` were replaced by modern equivalents ``encodeURIcomponent`` and ``decodeURIcomponent``. This may lead to changes in cookies, notably making them work better.
* DB: the NO_ZERO_DATE mode is no longer required, see [#78](https://github.com/HugoFara/lwt/issues/78).
* In the ``words`` table, replaced the default timestamp ``0000-00-00 00:00:00`` by ``0000-00-00 00:00:01``.
* The demo database underwent the same change.

### Deprecated
* ``do_test_test_css`` in ``do_test_test.php`` is deprecated since it was causing display issues. Its CSS rules were trimmed.
Expand Down Expand Up @@ -49,6 +52,7 @@ For git tags, official releases are marked like "v1.0.0", while unofficial ones
* UI
* Audio in ``edit_texts.php`` was never shown.
* When adding text, the user was ask to create a ``media`` folder in ``...``, corrected to ``..``.
* DB: for some users it was impossible to install the default database due to the use of a ZERO date ([#78](https://github.com/HugoFara/lwt/issues/78)).

## 2.5.3-fork (November 06 2022)
### Added
Expand Down
7 changes: 7 additions & 0 deletions docs/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,12 @@ <h4>Changed</h4>
</ul>
</li>
<li>JS: Some deprecated functions <code>escape</code> and <code>unescape</code> were replaced by modern equivalents <code>encodeURIcomponent</code> and <code>decodeURIcomponent</code>. This may lead to changes in cookies, notably making them work better.</li>
<li>DB: the NO_ZERO_DATE mode is no longer required, see <a href="https://github.com/HugoFara/lwt/issues/78">#78</a>.
<ul>
<li>In the <code>words</code> table, replaced the default timestamp <code>0000-00-00 00:00:00</code> by <code>0000-00-00 00:00:01</code>.</li>
<li>The demo database underwent the same change.</li>
</ul>
</li>
</ul>
<h4>Deprecated</h4>
<ul>
Expand Down Expand Up @@ -2000,6 +2006,7 @@ <h4>Fixed</h4>
<li>When adding text, the user was ask to create a <code>media</code> folder in <code>...</code>, corrected to <code>..</code>.</li>
</ul>
</li>
<li>DB: for some users it was impossible to install the default database due to the use of a ZERO date (<a href="https://github.com/HugoFara/lwt/issues/78">#78</a>).</li>
</ul>
<h3>2.5.3-fork (November 06 2022)</h3>
<h4>Added</h4>
Expand Down
Loading

0 comments on commit a325106

Please sign in to comment.