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

Upgraded Medication Resource #3790

Merged
merged 7 commits into from
Aug 5, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added UUID to database.sql
Signed-off-by: Yash Bothra <yashrajbothra786@gmail.com>
  • Loading branch information
yashrajbothra committed Aug 3, 2020
commit b4bdefe3aa72e20bba5fb045fc39fa95f8b71535
2 changes: 2 additions & 0 deletions sql/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,7 @@ CREATE TABLE `drug_templates` (
DROP TABLE IF EXISTS `drugs`;
CREATE TABLE `drugs` (
`drug_id` int(11) NOT NULL auto_increment,
`drugs` ADD `uuid` binary(16) DEFAULT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`ndc_number` varchar(20) NOT NULL DEFAULT '',
`on_order` int(11) NOT NULL default '0',
Expand All @@ -1357,6 +1358,7 @@ CREATE TABLE `drugs` (
`consumable` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 = will not show on the fee sheet',
`dispensable` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0 = pharmacy elsewhere, 1 = dispensed here',
PRIMARY KEY (`drug_id`)
UNIQUE INDEX `uuid` ON `drugs` (`uuid`);
) ENGINE=InnoDB AUTO_INCREMENT=1;

-- --------------------------------------------------------
Expand Down