added table for card_history_dates

This commit is contained in:
Patrick McDonagh
2015-12-30 07:07:12 -06:00
parent 1f61edd4fe
commit 48ca7e127a
3 changed files with 44 additions and 36 deletions

58
README
View File

@@ -1,30 +1,30 @@
# HENRY PUMP POCONSOLE MODULE # # HENRY PUMP POCONSOLE MODULE #
Author: Patrick McDonagh, Henry Pump Author: Patrick McDonagh, Henry Pump
Date: 12.08.2015 Date: 12.08.2015
## Building ## ## Building ##
* First, run * First, run
``` ```
#!shell #!shell
sudo raspi-config sudo raspi-config
``` ```
- Expand the filesystem and set the localization options - Expand the filesystem and set the localization options
cd setup cd setup
chmod +x initialSetup.sh chmod +x initialSetup.sh
./initialSetup.sh ./initialSetup.sh
- When prompted, set the poconsole user password. - When prompted, set the poconsole user password.
- Logout and log back in as poconsole - Logout and log back in as poconsole
cd setup cd setup
chmod +x setup.sh chmod +x setup.sh
./setup.sh ./setup.sh
- Grab a cup of coffee, relax, and let me handle the rest. - Grab a cup of coffee, relax, and let me handle the rest.

View File

@@ -214,3 +214,11 @@ CREATE TABLE `WellData`.`fluid_shot` (
`Downhole_Load` blob, `Downhole_Load` blob,
PRIMARY KEY (`id`,`Card_ID`) PRIMARY KEY (`id`,`Card_ID`)
); );
CREATE TABLE `WellData`.`card_history_dates` (
`id` INT NOT NULL AUTO_INCREMENT ,
`year` INT NULL ,
`month` INT NULL ,
`day` INT NULL ,
`first_id` INT NULL ,
PRIMARY KEY (`id`) );

View File

@@ -1,7 +1,7 @@
CREATE USER 'website'@'localhost' IDENTIFIED BY 'henrypump'; CREATE USER 'website'@'localhost' IDENTIFIED BY 'henrypump';
GRANT ALL ON *.* TO 'website'@'localhost'; GRANT ALL ON *.* TO 'website'@'localhost';
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'henrypump'; CREATE USER 'admin'@'localhost' IDENTIFIED BY 'henrypump';
GRANT ALL ON *.* to 'admin'@'localhost'; GRANT ALL ON *.* to 'admin'@'localhost';
CREATE USER 'admin'@'%' IDENTIFIED BY 'henrypump'; CREATE USER 'admin'@'%' IDENTIFIED BY 'henrypump';
GRANT ALL ON *.* to 'admin'@'%'; GRANT ALL ON *.* to 'admin'@'%';
FLUSH PRIVILEGES; FLUSH PRIVILEGES;