From 7fead5486b6d1da16997044b1348c848a5ef68de Mon Sep 17 00:00:00 2001 From: Mathis Date: Fri, 3 May 2024 14:56:37 +0200 Subject: [PATCH] fix(db): modify 'rents' SQL table structure The commit modifies the 'rents' SQL table: - Replaces the improperly quoted table name with correct syntax: from 'rents' to `rents`. - Changes `id` field data type from tinyint to varchar. - Updates database dump's completion timestamp. Signed-off-by: Mathis --- db.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db.sql b/db.sql index 5abbcd2..442be12 100644 --- a/db.sql +++ b/db.sql @@ -77,7 +77,7 @@ CREATE TABLE `models` ( -- Table structure for table `rents` -- -DROP TABLE IF EXISTS 'rents'; +DROP TABLE IF EXISTS `rents`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `rents` ( @@ -88,7 +88,7 @@ CREATE TABLE `rents` ( `eat` date NOT NULL, `need_survey` tinyint(1) DEFAULT NULL, `km_at_start` int(11) DEFAULT NULL, - `id` tinyint(1) NOT NULL, + `id` varchar(36) NOT NULL, PRIMARY KEY (`id`), KEY `rent_vehicles_id_fk` (`vehicle_id`), KEY `rent_users_id_fk` (`user_id`), @@ -152,4 +152,4 @@ CREATE TABLE `vehicles` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-04-29 14:54:00 +-- Dump completed on 2024-05-03 14:56:07