-
-
Save CodingTricksHub/cb40c092c5938597e40aa6cb32f1c106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `categories` ( | |
`id` int(11) NOT NULL, | |
`categoryName` text NOT NULL | |
); | |
CREATE TABLE IF NOT EXISTS `favouritecategories` ( | |
`id` int(11) NOT NULL, | |
`email` text NOT NULL, | |
`categoryId` text NOT NULL | |
); | |
ALTER TABLE `favouritecategories` | |
ADD PRIMARY KEY (`id`); | |
ALTER TABLE `favouritecategories` | |
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment