Fix taille des numéros de téléphones
This commit is contained in:
parent
7e378e2eff
commit
a1ba15df7e
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
);
|
||||
|
@ -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
|
||||
);
|
||||
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue