From 73c195712944b60fd577e279aee8d91176e77412 Mon Sep 17 00:00:00 2001 From: mischa Date: Wed, 24 Aug 2022 17:25:23 +0000 Subject: [PATCH] README added PRIMARY KEY --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8697455..d6f240d 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ Database and table needed, build on MariaDB / MySQL: CREATE DATABASE IF NOT EXISTS `shortr` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `shortr`; - CREATE TABLE `urls` ( `id` varchar(255) NOT NULL, `url` text DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), `ip` varchar(255) DEFAULT NULL, - `count` int(11) NOT NULL + `count` int(11) NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;