Skip to content
Snippets Groups Projects
Commit 1cc0f936 authored by Jonas Leder's avatar Jonas Leder
Browse files

added database generator sql

parent 15c26068
Branches
Tags
No related merge requests found
CREATE TABLE `posts` (
`id` int NOT NULL,
`title` text,
`content` text,
`date` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
ALTER TABLE `posts`
MODIFY `id` int NOT NULL AUTO_INCREMENT;
CREATE TABLE `comments` (
`id` int(11) NOT NULL,
`name` longtext NOT NULL,
`email` longtext NOT NULL,
`comment` longtext NOT NULL,
`article` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `comments`
ADD PRIMARY KEY (`id`);
ALTER TABLE `comments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment