Browse Source

Update doogle-tables-no-data.sql

Zepher Ashe 2 years ago
parent
commit
c9a23da943
1 changed files with 9 additions and 3 deletions
  1. 9 3
      doogle-tables-no-data.sql

+ 9 - 3
doogle-tables-no-data.sql

@@ -11,6 +11,12 @@ SET time_zone = "+00:00";
 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
 /*!40101 SET NAMES utf8mb4 */;
 /*!40101 SET NAMES utf8mb4 */;
 
 
+--
+-- User Creation: `doogle`
+--
+CREATE USER IF NOT EXISTS 'doogle'@'%' IDENTIFIED BY 'PASSWORD_HERE';
+GRANT SELECT, INSERT, UPDATE ON `doogle`.* TO 'doogle'@'%';
+
 --
 --
 -- Database: `doogle`
 -- Database: `doogle`
 --
 --
@@ -23,7 +29,7 @@ USE `doogle`;
 -- Table structure for table `images`
 -- Table structure for table `images`
 --
 --
 
 
-CREATE TABLE `images` (
+CREATE TABLE IF NOT EXISTS `images` (
   `id` int(11) NOT NULL,
   `id` int(11) NOT NULL,
   `siteUrl` varchar(512) NOT NULL,
   `siteUrl` varchar(512) NOT NULL,
   `imageUrl` varchar(512) NOT NULL,
   `imageUrl` varchar(512) NOT NULL,
@@ -39,7 +45,7 @@ CREATE TABLE `images` (
 -- Table structure for table `sites`
 -- Table structure for table `sites`
 --
 --
 
 
-CREATE TABLE `sites` (
+CREATE TABLE IF NOT EXISTS `sites` (
   `id` int(11) NOT NULL,
   `id` int(11) NOT NULL,
   `url` varchar(512) NOT NULL,
   `url` varchar(512) NOT NULL,
   `title` varchar(512) NOT NULL,
   `title` varchar(512) NOT NULL,
@@ -54,7 +60,7 @@ CREATE TABLE `sites` (
 -- Table structure for table `users`
 -- Table structure for table `users`
 --
 --
 
 
-CREATE TABLE `users` (
+CREATE TABLE IF NOT EXISTS `users` (
   `id` int(11) NOT NULL,
   `id` int(11) NOT NULL,
   `username` varchar(100) NOT NULL,
   `username` varchar(100) NOT NULL,
   `email` varchar(150) NOT NULL,
   `email` varchar(150) NOT NULL,