<?php

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDataCertificateAndAwards extends Migration
{

    public function up()
    {

        DB::statement("ALTER TABLE awards_certificate_category MODIFY COLUMN country_code varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL ");

        DB::statement("UPDATE awards_certificate_category SET country_code = 'TR'  WHERE id = 1");
        DB::statement("UPDATE awards_certificate_category SET country_code = 'TR'  WHERE id = 2");
        DB::statement("UPDATE awards_certificate_category SET country_code = 'TR'  WHERE id = 3");

        DB::statement("INSERT INTO `awards_certificate_category` VALUES
             (4,'Güvenli Turizm Sertifikası',null,'TR',null,'CRT',1,1,1,1,1),
             (5,'Sağlıklı Turizm Belgesi',null,'TR',null,'CRT',1,1,1,1,1),
             (6,'TSE Sertifikası',null,'TR',null,'CRT',1,1,1,1,1),
             (7,'ETS En iyi otel',null,'TR',null,'AWD',1,1,1,1,1),
             (8,'TÜV Rheinland Hotel Cert',null,'DE',null,'CRT',1,1,1,1,1),
             (9,'LEED Certified',null,null,null,'CRT',1,1,1,1,1),
             (10,'LEED Silver',null,null,null,'CRT',1,1,1,1,1),
             (11,'LEED Gold',null,null,null,'CRT',1,1,1,1,1),
             (12,'LEED Platinum',null,null,null,'CRT',1,1,1,1,1),
             (13,'International Blue Flag Certification',null,null,null,'CRT',1,1,1,1,1),
             (14,'Green Key',null,null,null,'CRT',1,1,1,1,1),
             (15,'ISO 9001 Quality Management Systems',null,null,null,'CRT',1,1,1,1,1),
             (16,'ISO 18001 Occupational Health and Safety Management Systems',null,null,null,'CRT',1,1,1,1,1),
             (17,'ISO 14001 Environmental Management Systems',null,null,null,'CRT',1,1,1,1,1),
             (18,'ISO 22000 Food Safety Management System',null,null,null,'CRT',1,1,1,1,1),
             (19,'Tripadvisor - Travelers'' Choice Award',null,null,null,'AWD',1,1,1,1,1),
             (20,'Corendon Hotel of the Year Award',null,null,null,'AWD',1,1,1,1,1),
             (21,'Yeşil Yıldız Sertifikası',null,'TR',null,'CRT',1,1,1,1,1),
             (22,'Travel Life Gold',null,null,null,'AWD',1,1,1,1,1),
             (23,'TripAdvisor - Certificate of Excellence',null,null,null,'CRT',1,1,1,1,1),
             (24,'Otelpuan.com',null,'TR',null,'AWD',1,1,1,1,1),
             (25,'Booking.com Guest Review Award',null,null,null,'AWD',1,1,1,1,1),
             (26,'HolidayCheck',null,null,null,'AWD',1,1,1,1,1),
             (27,'Schauinsland Reisen Top Hotel Partner',null,null,null,'AWD',1,1,1,1,1),
             (28,'HolidayCheck Quality Selection',null,null,null,'AWD',1,1,1,1,1),
             (29,'IAGTO Award',null,null,null,'AWD',1,1,1,1,1),
             (30,'JET2 Quality Award',null,null,null,'AWD',1,1,1,1,1),
             (31,'Quality Management Award',null,'TR',null,'AWD',1,1,1,1,1),
             (32,'Prime Traveller',null,'TR',null,'AWD',1,1,1,1,1),
             (33,'Coral Travel ''Starway World''s Best Hotels'' Award',null,null,null,'AWD',1,1,1,1,1),
             (34,'Thomas Cook Certificate of Proven Quality',null,null,null,'AWD',1,1,1,1,1),
             (35,'Leadingcourse Best Golf Club',null,null,null,'AWD',1,1,1,1,1),
             (36,'TUI Holly - Award',null,null,null,'AWD',1,1,1,1,1),
             (37,'Tophotels.ru Hospitality Award',null,null,null,'AWD',1,1,1,1,1),
             (38,'Zoover Highly Recommended',null,null,null,'AWD',1,1,1,1,1),
             (39,'TripAdvisor - Best Family Hotels',null,null,null,'AWD',1,1,1,1,1),
             (40,'Sign of the City Award',null,'TR',null,'AWD',1,1,1,1,1),
             (41,'Cvent Supplier Professional Certification',null,null,null,'CRT',1,1,1,1,1),
             (42,'Cvent Event Diagramming Certification',null,null,null,'CRT',1,1,1,1,1),
             (43,'DMCP: Destination Management Certified Professional',null,'US',null,'CRT',1,1,1,1,1),
             (44,'CGMP: Certified Government Meeting Professional',null,'US',null,'CRT',1,1,1,1,1),
             (45,'DES: Digital Event Strategist',null,'US',null,'CRT',1,1,1,1,1),
             (46,'CVE: Certified Venue Executive',null,'US',null,'CRT',1,1,1,1,1),
             (47,'CSP: Certified Speaking Professional',null,'US',null,'CRT',1,1,1,1,1),
             (48,'CEM: Certified in Exhibition Management',null,'US',null,'CRT',1,1,1,1,1),
             (49,'CSEP: Certified Special Events Professional',null,'US',null,'CRT',1,1,1,1,1),
             (50,'CDME: Certified Destination Management Executive',null,'US',null,'CRT',1,1,1,1,1),
             (51,'CPCE: Certified Professional in Catering and Events',null,'US',null,'CRT',1,1,1,1,1),
             (52,'CCEP: Collegiate Conference and Events Professional',null,'US',null,'CRT',1,1,1,1,1),
             (53,'CMP: Certification in Meeting Management',null,'US',null,'CRT',1,1,1,1,1),
             (54,'CAE: Certified Association Executive',null,'US',null,'CRT',1,1,1,1,1),
             (55,'BVOM: Business Value of Meetings',null,'US',null,'CRT',1,1,1,1,1),
             (56,'CRDE: Certified Rooms Division Executive',null,'US',null,'CRT',1,1,1,1,1),
             (57,'CHSP: Certified Hospitality Sales Professional',null,'US',null,'CRT',1,1,1,1,1),
             (58,'CHDT: Certified Hospitality Department Trainer',null,'US',null,'CRT',1,1,1,1,1),
             (59,'CHDM: Certified Hospitality Digital Marketer',null,'US',null,'CRT',1,1,1,1,1),
             (60,'CHS: Certified Hospitality Supervisor',null,'US',null,'CRT',1,1,1,1,1),
             (61,'CHA: Certified Hotel Administrator',null,'US',null,'CRT',1,1,1,1,1),
             (62,'CHRM: Certified Hospitality Revenue Manager',null,'US',null,'CRT',1,1,1,1,1),
             (63,'Greek Hospitality Awards - All-inclusive Hotel / Resort',null,'GR',null,'AWD',1,1,1,1,1),
             (64,'Greek Hospitality Awards - Boutique Hotel',null,'GR',null,'AWD',1,1,1,1,1),
             (65,'Greek Hospitality Awards - Best City Resort',null,'GR',null,'AWD',1,1,1,1,1),
             (66,'Greek Hospitality Awards - Family Hotel',null,'GR',null,'AWD',1,1,1,1,1),
             (67,'Greek Hospitality Awards - Eco-Friendly Hotel / Resort',null,'GR',null,'AWD',1,1,1,1,1),
             (68,'Greek Hospitality Awards - Beach Hotel / Resort',null,'GR',null,'AWD',1,1,1,1,1),
             (69,'Greek Hospitality Awards - Luxury Hotel / Resort',null,'GR',null,'AWD',1,1,1,1,1),
             (70,'Europe Property Award',null,null,null,'AWD',1,1,1,1,1),
             (71,'African Property Award',null,null,null,'AWD',1,1,1,1,1),
             (72,'Arabian Property Award',null,null,null,'AWD',1,1,1,1,1),
             (73,'Asia Pacific Property Award',null,null,null,'AWD',1,1,1,1,1),
             (74,'Canada Property Award',null,null,null,'AWD',1,1,1,1,1),
             (75,'Caribbean Property Award',null,null,null,'AWD',1,1,1,1,1),
             (76,'Central & Sout America Property Award',null,null,null,'AWD',1,1,1,1,1),
             (77,'United Kingdom Property Award',null,null,null,'AWD',1,1,1,1,1),
             (78,'USA Property Award',null,null,null,'AWD',1,1,1,1,1),
             (79,'Forbes Travel Guide',null,null,null,'AWD',1,1,1,1,1),
             (80,'World Travel Award',null,null,null,'AWD',1,1,1,1,1),
             (81,'Luxury Lifestyle Award',null,null,null,'AWD',1,1,1,1,1),
             (82,'Best Of Ramada',null,null,null,'AWD',1,1,1,1,1)
                                            ;");
    }

    public function down()
    {

    }
}
