Skip to content

Commit

Permalink
Fix taille des numéros de téléphones
Browse files Browse the repository at this point in the history
  • Loading branch information
OsaAjani committed Jan 6, 2016
1 parent debcfcb commit 6c4943e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions createDatabase.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS receiveds
(
id INT NOT NULL AUTO_INCREMENT,
at DATETIME NOT NULL,
send_by VARCHAR(12) NOT NULL,
send_by VARCHAR(20) NOT NULL,
content VARCHAR(1000) NOT NULL,
is_command BOOLEAN NOT NULL,
PRIMARY KEY (id)
Expand All @@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS sendeds
(
id INT NOT NULL AUTO_INCREMENT,
at DATETIME NOT NULL,
target VARCHAR(12) NOT NULL,
target VARCHAR(20) NOT NULL,
content VARCHAR(1000) NOT NULL,
before_delivered INT NOT NULL,
delivered BOOLEAN NOT NULL DEFAULT FALSE,
Expand All @@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS contacts

id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
number VARCHAR(12) NOT NULL,
number VARCHAR(20) NOT NULL,
PRIMARY KEY (id),
UNIQUE (name)
);
Expand Down Expand Up @@ -96,7 +96,7 @@ CREATE TABLE IF NOT EXISTS scheduleds_numbers
(
id INT NOT NULL AUTO_INCREMENT,
id_scheduled INT NOT NULL,
number VARCHAR(12) NOT NULL,
number VARCHAR(20) NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (id_scheduled) REFERENCES scheduleds (id) ON DELETE CASCADE ON UPDATE CASCADE
);
Expand Down Expand Up @@ -143,7 +143,7 @@ CREATE TABLE IF NOT EXISTS transfers
CREATE TABLE IF NOT EXISTS sms_stop
(
id INT NOT NULL AUTO_INCREMENT,
number VARCHAR(12) NOT NULL,
number VARCHAR(20) NOT NULL,
PRIMARY KEY (id),
UNIQUE (number)
);
Expand Down

0 comments on commit 6c4943e

Please sign in to comment.