Fix datetime field with empty default #363
Annotations
5 errors and 2 warnings
Check code style:
tests/WP_SQLite_Translator_Tests.php#L295
String "CREATE TABLE _tmp_table (\n ID BIGINT PRIMARY KEY AUTO_INCREMENT,\n timestamp1 datetime NOT NULL,\n timestamp2 date NOT NULL,\n timestamp3 time NOT NULL,\n timestamp4 timestamp NOT NULL,\n timestamp5 year NOT NULL\n );" does not require double quotes; use single quotes instead
|
Check code style:
tests/WP_SQLite_Translator_Tests.php#L311
String "CREATE TABLE `_tmp_table` (\n `ID` bigint AUTO_INCREMENT,\n `timestamp1` datetime NOT NULL,\n `timestamp2` date NOT NULL,\n `timestamp3` time NOT NULL,\n `timestamp4` timestamp NOT NULL,\n `timestamp5` year NOT NULL,\n PRIMARY KEY (`ID`)\n);" does not require double quotes; use single quotes instead
|
Check code style:
wp-includes/sqlite/class-wp-sqlite-translator.php#L3870
Expected 1 space before opening brace; found 2
|
Check code style
Process completed with exit code 1.
|
Check code style
Process completed with exit code 2.
|
Check code style
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check code style:
wp-includes/sqlite/class-wp-sqlite-translator.php#L3696
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
|