Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpaca schema update #18

Merged
merged 5 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/db/scripts/development.sql
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ INSERT INTO `lst_discharge_reason` VALUES (1,'Service restriction',0,1,10),(2,'C
INSERT INTO `lst_field_category` VALUES (1,'Agency',1,10),(2,'Client',1,20),(3,'Intake',1,30),(4,'Program',1,40);
INSERT INTO `lst_gender` VALUES ('F','Female',1,1),('M','Male',1,2),('T','Transgender',1,3);
INSERT INTO `lst_organization` VALUES (1,'City of Toronto',1,1),(2,'Salvation Army',1,2),(3,'Fred Victor',1,3);
INSERT INTO `lst_orgcd` VALUES ('O0000020','Salvation Army','1',30,'R0000001O0000020'),('R0000001','Shelter Management Information System','1',10,'R000001');
INSERT INTO `lst_orgcd` (code, description, activeyn, orderbyindex, codetree) VALUES ('O0000020', 'Salvation Army', '1', 30, 'R0000001O0000020'),('R0000001', 'Shelter Management Information System', '1', 10, 'R000001');
INSERT INTO `lst_program_type` VALUES ('01','BED',1,1),('02','SERVICE',1,2),('03','EXTERNAL',1,3);
INSERT INTO `lst_sector` VALUES (1,'Men',1,1),(2,'Women',1,2),(3,'Families',1,3),(4,'Youth',1,4);
INSERT INTO `lst_service_restriction` VALUES (1,'Assault of client',1,10),(2,'Assault of staff',1,20),(3,'Other',1,30);
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/development/config/shared/my.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
default-character-set = utf8mb4

# Here is entries for some specific programs
# The following values assume you have at least 32M ram
Expand Down Expand Up @@ -133,7 +134,7 @@ sql_mode = ""
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
default_storage_engine = Aria
default_storage_engine = InnoDB
# you can't just change log file size, requires special procedure
innodb_log_file_size = 2G
innodb_random_read_ahead = OFF
Expand Down
3 changes: 3 additions & 0 deletions database/mysql/createdatabase_generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ $mysql_cmd < measurementMapData.sql
echo 'loading expire_oscardoc.sql'
$mysql_cmd < expire_oscardoc.sql

echo "loading oscarinit_2024.sql"
$mysql_cmd < oscarinit_2024.sql

echo 'all done!'
echo 'the default user is oscardoc'
echo 'password mac2002'
Expand Down
7 changes: 6 additions & 1 deletion database/mysql/oscarinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7824,7 +7824,6 @@ CREATE TABLE IF NOT EXISTS `waitingList` (
-- Table structure for table `pharmacyInfo`
--
CREATE TABLE IF NOT EXISTS pharmacyInfo (
`uid` int(10) NOT NULL,
`recordID` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`address` varchar(255),
Expand Down Expand Up @@ -13195,4 +13194,10 @@ CREATE TABLE IF NOT EXISTS emailAttachment (
documentType VARCHAR(20),
documentId INT,
FOREIGN KEY (logId) REFERENCES emailLog (id)
);

CREATE TABLE IF NOT EXISTS specialty (
region varchar(5) default '',
specialty char(2) default '',
specialtydesc varchar(100) default ''
);
Loading
Loading