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;
|
CREATE DATABASE IF NOT EXISTS `shortr` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
||||||
USE `shortr`;
|
USE `shortr`;
|
||||||
|
|
||||||
CREATE TABLE `urls` (
|
CREATE TABLE `urls` (
|
||||||
`id` varchar(255) NOT NULL,
|
`id` varchar(255) NOT NULL,
|
||||||
`url` text DEFAULT NULL,
|
`url` text DEFAULT NULL,
|
||||||
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
|
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||||
`ip` varchar(255) DEFAULT NULL,
|
`ip` varchar(255) DEFAULT NULL,
|
||||||
`count` int(11) NOT NULL
|
`count` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue