new PHP ratings service

This commit is contained in:
Steve Waterworth
2018-08-21 14:47:19 +01:00
parent 78e79fff30
commit b82d793cf1
25 changed files with 413 additions and 5 deletions

Binary file not shown.

View File

@@ -0,0 +1,16 @@
CREATE DATABASE ratings
DEFAULT CHARACTER SET 'utf8';
USE ratings;
CREATE TABLE ratings (
sku varchar(80) NOT NULL,
avg_rating DECIMAL(3, 2) NOT NULL,
rating_count INT NOT NULL,
PRIMARY KEY (sku)
) ENGINE=InnoDB;
GRANT ALL ON ratings.* TO 'ratings'@'%'
IDENTIFIED BY 'iloveit';

5
mysql/scripts/99-finished.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
# signal that the import has finsihed
touch /tmp/finished