-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update actions with start and stop locations at PVL lab #619
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# PVL Actions | ||
These are Port Drayage actions created for the PVL Lab for testing of C1T functionality. | ||
|
||
## Instructions | ||
Replace the port_drayage.sql file in docker-compose.yml with the file in this directory. | ||
``` | ||
db: | ||
image: mysql:8.0 | ||
volumes: | ||
- ./mysql/pvl_lab/port_drayage.sql:/docker-entrypoint-initdb.d/port_drayage.sql | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
-- MySQL 8.0 for Linux amd64 (x86_64) and arm64 (aarch64) | ||
-- | ||
-- Host: 127.0.0.1 Database: PORT_DRAYAGE | ||
-- ------------------------------------------------------ | ||
-- Server version 7.6.0 | ||
-- Current Database: `PORT_DRAYAGE` | ||
-- | ||
|
||
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `PORT_DRAYAGE` /*!40100 DEFAULT CHARACTER SET latin1 */; | ||
|
||
USE `PORT_DRAYAGE`; | ||
|
||
-- | ||
-- Table structure for table `first_action` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `first_action`; | ||
CREATE TABLE `first_action` ( | ||
`cmv_id` varchar(20) NOT NULL, | ||
`cargo_id` varchar(20) DEFAULT NULL, | ||
`destination_lat` decimal(9,7) NOT NULL, | ||
`destination_long` decimal(9,7) NOT NULL, | ||
`operation` varchar(20) NOT NULL, | ||
`action_id` varchar(36) NOT NULL, | ||
`next_action` varchar(36) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
LOCK TABLES `first_action` WRITE; | ||
INSERT INTO `first_action` VALUES ('C1T-1','CARGO_A',-5.8,3.7,'PICKUP','4bea1c45-e421-11eb-a8cc-000c29ae3c1t','32320c8a-e422-11eb-a8cc-000c29ae3c1t'); | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `freight` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `freight`; | ||
CREATE TABLE `freight` ( | ||
`cmv_id` varchar(20) NOT NULL, | ||
`cargo_id` varchar(20) DEFAULT NULL, | ||
`destination_lat` decimal(9,7) NOT NULL, | ||
`destination_long` decimal(9,7) NOT NULL, | ||
`operation` varchar(20) NOT NULL, | ||
`action_id` varchar(36) NOT NULL, | ||
`next_action` varchar(36) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
LOCK TABLES `freight` WRITE; | ||
INSERT INTO `freight` VALUES ('C1T-1',NULL,0.2,0.0,'EXIT_STAGING_AREA','32320c8a-e422-11eb-a8cc-000c29ae3c1t','4ace39e6-ee36-11eb-9a03-0242ac130c1t'); | ||
UNLOCK TABLES; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dan-du-car lol these were place holder instructions. I think as the are currently written they do not work. You have to update the volume here and maybe add a sentence about replacing the old actions with the ones configured for PVL