Skip to content

Commit

Permalink
phone need bigger rage for 10 digit int
Browse files Browse the repository at this point in the history
  • Loading branch information
samisa-abeysinghe committed Oct 30, 2022
1 parent ad9072e commit d532ce3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions db/schema/3-organization_and_address_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ USE avinya_db;
CREATE TABLE IF NOT EXISTS address (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
street_address VARCHAR(255) NOT NULL,
phone INT,
phone BIGINT,
city_id INT NOT NULL,
FOREIGN KEY (city_id) REFERENCES city(id)
);
Expand All @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS organization (
name_en VARCHAR(255) NOT NULL,
name_ta VARCHAR(255),
name_si VARCHAR(255),
phone INT,
phone BIGINT,
address_id INT,
avinya_type INT,
FOREIGN KEY (address_id) REFERENCES address(id),
Expand Down
2 changes: 1 addition & 1 deletion db/schema/4-person.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS person (
asgardeo_id VARCHAR(255) DEFAULT NULL,
permanent_address_id INT DEFAULT NULL,
mailing_address_id INT DEFAULT NULL,
phone INT DEFAULT 0,
phone BIGINT DEFAULT 0,
organization_id INT DEFAULT NULL,
avinya_type_id INT DEFAULT NULL,
notes VARCHAR(1024) DEFAULT NULL,
Expand Down
4 changes: 2 additions & 2 deletions db/schema/5-vacancy_and_evaluations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ CREATE TABLE IF NOT EXISTS applicant_consent (
done_ol BOOL DEFAULT false,
ol_year INT NOT NULL DEFAULT '2000',
distance_to_school INT DEFAULT 500,
phone INT NOT NULL DEFAULT 0,
phone BIGINT NOT NULL DEFAULT 0,
email VARCHAR(254) DEFAULT '[email protected]',
information_correct_consent BOOL DEFAULT FALSE,
agree_terms_consent BOOL DEFAULT FALSE,
Expand All @@ -171,7 +171,7 @@ CREATE TABLE IF NOT EXISTS prospect (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
active BOOLEAN NOT NULL DEFAULT TRUE,
name VARCHAR(100) NOT NULL DEFAULT 'Anon',
phone INT NOT NULL DEFAULT 0,
phone BIGINT NOT NULL DEFAULT 0,
email VARCHAR(254) DEFAULT '[email protected]',
receive_information_consent BOOL DEFAULT FALSE,
agree_terms_consent BOOL DEFAULT FALSE,
Expand Down

0 comments on commit d532ce3

Please sign in to comment.