Skip to content

Commit 2f28bc1

Browse files
committed
adding sql for star rating save
1 parent 6563763 commit 2f28bc1

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 4.8.3
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: localhost:3306
6+
-- Generation Time: Feb 01, 2020 at 01:05 PM
7+
-- Server version: 5.5.61-cll
8+
-- PHP Version: 7.2.7
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET AUTOCOMMIT = 0;
12+
START TRANSACTION;
13+
SET time_zone = "+00:00";
14+
15+
16+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19+
/*!40101 SET NAMES utf8mb4 */;
20+
21+
--
22+
-- Database: `star_rating_saves`
23+
--
24+
CREATE DATABASE IF NOT EXISTS `star_rating_saves` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
25+
USE `star_rating_saves`;
26+
27+
-- --------------------------------------------------------
28+
29+
--
30+
-- Table structure for table `ratings`
31+
--
32+
33+
DROP TABLE IF EXISTS `ratings`;
34+
CREATE TABLE `ratings` (
35+
`id` int(11) NOT NULL,
36+
`name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
37+
`rating_percent` int(11) NOT NULL
38+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
39+
40+
--
41+
-- Dumping data for table `ratings`
42+
--
43+
44+
INSERT INTO `ratings` (`id`, `name`, `rating_percent`) VALUES
45+
(1, 'Star System One', 80),
46+
(2, 'Star System Two', 100);
47+
48+
--
49+
-- Indexes for dumped tables
50+
--
51+
52+
--
53+
-- Indexes for table `ratings`
54+
--
55+
ALTER TABLE `ratings`
56+
ADD PRIMARY KEY (`id`);
57+
58+
--
59+
-- AUTO_INCREMENT for dumped tables
60+
--
61+
62+
--
63+
-- AUTO_INCREMENT for table `ratings`
64+
--
65+
ALTER TABLE `ratings`
66+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
67+
COMMIT;
68+
69+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
70+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
71+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)