new PHP ratings service
This commit is contained in:
BIN
mysql/scripts/10-dump.sql.gz
Normal file
BIN
mysql/scripts/10-dump.sql.gz
Normal file
Binary file not shown.
16
mysql/scripts/20-ratings.sql
Normal file
16
mysql/scripts/20-ratings.sql
Normal 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
5
mysql/scripts/99-finished.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# signal that the import has finsihed
|
||||
touch /tmp/finished
|
||||
|
Reference in New Issue
Block a user