Skip to content

Commit 983c62e

Browse files
committed
Decrease from 3 to 2 characters for chart period + fix an issue into SQL scripts
1 parent d077159 commit 983c62e

6 files changed

Lines changed: 3966 additions & 3966 deletions

File tree

config/mysql/docker-entrypoint-initdb.d/CREATE_ALL.sql

Lines changed: 1321 additions & 1321 deletions
Large diffs are not rendered by default.

scripts/sql/CREATE_ALL.sql

Lines changed: 1321 additions & 1321 deletions
Large diffs are not rendered by default.

scripts/sql/CREATE_DATA.sql

Lines changed: 1320 additions & 1320 deletions
Large diffs are not rendered by default.

scripts/sql/CREATE_SAMPLE_DATA.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ INSERT INTO favorites VALUES (2, 2);
1212
INSERT INTO favorites VALUES (3, 2);
1313
INSERT INTO favorites VALUES (4, 2);
1414

15-
INSERT INTO settings VALUES (1, 'Light setting', 'light', '1D', now(), now(), 1);
16-
INSERT INTO settings VALUES (2, 'Dark setting', 'dark', '1Y', now(), now(), 1);
15+
INSERT INTO settings VALUES (1, 'Light setting', 'light', '1d', now(), now(), 1);
16+
INSERT INTO settings VALUES (2, 'Dark setting', 'dark', '1y', now(), now(), 1);
1717
INSERT INTO settings VALUES (3, 'Setting n° 1', 'light', '3M', now(), now(), 2);
1818

1919
INSERT INTO alerts VALUES (1, 'ETH = 0.002467', '0.002467', false, false, now(), now(), 1, 2, 1);

scripts/sql/CREATE_TABLES.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ CREATE TABLE settings (
6464
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
6565
name VARCHAR(250) NOT NULL,
6666
theme VARCHAR(250) NOT NULL,
67-
chart_period VARCHAR(3) NOT NULL,
67+
chart_period VARCHAR(2) NOT NULL,
6868
creation_date DATETIME NOT NULL,
6969
last_update DATETIME NOT NULL,
7070
user INT NOT NULL,

src/main/java/fr/polytech/codev/backend/entities/Setting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class Setting implements fr.polytech.codev.backend.entities.Entity {
3535
private String theme;
3636

3737
@NotBlank(message = "The chart period can't be blank!")
38-
@Size(message = "The chart period can't exceed 3 characters!", max = 3)
38+
@Size(message = "The chart period can't exceed 2 characters!", max = 2)
3939
@Column(name = "chart_period")
4040
private String chartPeriod;
4141

0 commit comments

Comments
 (0)