Skip to content

Commit c9a23da

Browse files
committed
Update doogle-tables-no-data.sql
1 parent ec281ec commit c9a23da

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

doogle-tables-no-data.sql

+9-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ SET time_zone = "+00:00";
1111
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
1212
/*!40101 SET NAMES utf8mb4 */;
1313

14+
--
15+
-- User Creation: `doogle`
16+
--
17+
CREATE USER IF NOT EXISTS 'doogle'@'%' IDENTIFIED BY 'PASSWORD_HERE';
18+
GRANT SELECT, INSERT, UPDATE ON `doogle`.* TO 'doogle'@'%';
19+
1420
--
1521
-- Database: `doogle`
1622
--
@@ -23,7 +29,7 @@ USE `doogle`;
2329
-- Table structure for table `images`
2430
--
2531

26-
CREATE TABLE `images` (
32+
CREATE TABLE IF NOT EXISTS `images` (
2733
`id` int(11) NOT NULL,
2834
`siteUrl` varchar(512) NOT NULL,
2935
`imageUrl` varchar(512) NOT NULL,
@@ -39,7 +45,7 @@ CREATE TABLE `images` (
3945
-- Table structure for table `sites`
4046
--
4147

42-
CREATE TABLE `sites` (
48+
CREATE TABLE IF NOT EXISTS `sites` (
4349
`id` int(11) NOT NULL,
4450
`url` varchar(512) NOT NULL,
4551
`title` varchar(512) NOT NULL,
@@ -54,7 +60,7 @@ CREATE TABLE `sites` (
5460
-- Table structure for table `users`
5561
--
5662

57-
CREATE TABLE `users` (
63+
CREATE TABLE IF NOT EXISTS `users` (
5864
`id` int(11) NOT NULL,
5965
`username` varchar(100) NOT NULL,
6066
`email` varchar(150) NOT NULL,

0 commit comments

Comments
 (0)