From 649a6138420e44c232825195f8fd706803b3679a Mon Sep 17 00:00:00 2001 From: Andrii Levchenko Date: Thu, 31 Oct 2024 17:09:52 +0200 Subject: [PATCH] Solution --- task.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/task.sql b/task.sql index 4e9a6cd..8feb8f4 100644 --- a/task.sql +++ b/task.sql @@ -38,3 +38,17 @@ CREATE TABLE ProductInventory ( PRIMARY KEY (ID) ); --rollback DROP TABLE ProductInventory; + +--changeset mate.academy:5 labels:0.0.2 +CREATE TABLE Users ( + ID INT, + FirstName VARCHAR(50), + LastName VARCHAR(50), + Email VARCHAR(50), + PRIMARY KEY (ID) +); +--rollback DROP TABLE Users; + +--changeset mate.academy:6 labels:0.0.3 +CREATE INDEX Email ON Users(Email); +--rollback DROP INDEX Email ON Users;