-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
18 lines (17 loc) · 1.05 KB
/
Copy pathinit.sql
File metadata and controls
18 lines (17 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CREATE DATABASE IF NOT EXISTS `todo` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `todo`;
DROP TABLE IF EXISTS `task`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(100) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `task` WRITE;
/*!40000 ALTER TABLE `task` DISABLE KEYS */;
INSERT IGNORE INTO `task` VALUES (1,'Wake up',1),(2,'Eat my breakfast',2),(3,'Call Yulia',0),(4,'Buy milk',1),(5,'Learn Java',2),(6,'Play the guitar',0),(7,'Read a book',1),(8,'Play hockey',2),(9,'Shave the cat',0),(10,'Reward yourself with a nap',1),(11,'Ride a bike',2),(12,'Listen cool music',0),(13,'Go to cinema',1),(14,'Have a dinner',2),(15,'Go to bed',0);
/*!40000 ALTER TABLE `task` ENABLE KEYS */;
UNLOCK TABLES;