Update doogle-tables-no-data.sql

This commit is contained in:
Zepher Ashe 2023-01-19 11:51:19 +00:00
parent ec281ecf55
commit c9a23da943

View file

@ -11,6 +11,12 @@ SET time_zone = "+00:00";
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!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`
--
@ -23,7 +29,7 @@ USE `doogle`;
-- Table structure for table `images`
--
CREATE TABLE `images` (
CREATE TABLE IF NOT EXISTS `images` (
`id` int(11) NOT NULL,
`siteUrl` varchar(512) NOT NULL,
`imageUrl` varchar(512) NOT NULL,
@ -39,7 +45,7 @@ CREATE TABLE `images` (
-- Table structure for table `sites`
--
CREATE TABLE `sites` (
CREATE TABLE IF NOT EXISTS `sites` (
`id` int(11) NOT NULL,
`url` varchar(512) NOT NULL,
`title` varchar(512) NOT NULL,
@ -54,7 +60,7 @@ CREATE TABLE `sites` (
-- Table structure for table `users`
--
CREATE TABLE `users` (
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`email` varchar(150) NOT NULL,