From 44e8fe3a75fc3ee62fed95c81cf6a300f2cf96d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Frans=20Pondaco=20Winandy?=
 <jvfpw18@inf.ufpr.br>
Date: Thu, 25 Jul 2019 08:34:49 -0300
Subject: [PATCH] Small change to remap prompt

---
 database/database_table.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/database/database_table.py b/database/database_table.py
index 7a54ae7..8fa85da 100644
--- a/database/database_table.py
+++ b/database/database_table.py
@@ -698,17 +698,17 @@ class DatabaseTable(Table):
         if not auto_confirmation:
             if new_columns:
                 print('The following columns will be CREATED:', ', '.join(new_columns))
-                prompt = input('Is it right (yes or no)? ')
+                prompt = input('Is it right (y/N)? ')
                 accept_new_columns = prompt == 'yes' or prompt == 'y' or prompt == 1
             if to_drop_columns:
                 print('The following columns will be DROPPED:', ', '.join(to_drop_columns))
-                prompt = input('Is it right (yes or no)? ')
+                prompt = input('Is it right (y/N)? ')
                 accept_drop_columns = prompt == 'yes' or prompt == 'y' or prompt == 1
             if update_columns:
                 update_list = [update_dict['name'] + ' -new name: ' + update_dict['new_name']
                                + ' -new type: ' + update_dict['new_type'] for update_dict in update_columns]
                 print('The following columns will be UPDATED:', ', '.join(update_list))
-                prompt = input('Is it right (yes or no)? ')
+                prompt = input('Is it right (y/N)? ')
                 accept_update_columns = prompt == 'yes' or prompt == 'y' or prompt == 1
 
         with self.metadata.bind.connect() as connection:
-- 
GitLab