README added PRIMARY KEY
This commit is contained in:
parent
a7e8264c49
commit
73c1957129
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue