· 7 years ago · Oct 27, 2018, 01:22 PM
1Yii Migration Tool v1.0 (based on Yii v1.1.20)
2
3Total 35 new migrations to be applied:
4 m180521_113410_alter_table_housekeeping
5 m180523_135504_alter_table_housekeeping_add_cleaning_date
6 m180724_131328_alter_housekeeping_add_description
7 m180726_052619_add_table_housekeeping_comment
8 m180726_194310_add_index_for_booking_extended_from_id
9 m180801_102234_alter_booking_add_extended_dates
10 m180808_090651_update_extended_fields
11 m180821_175926_booking_checklist
12 m180829_133736_add_allow_manage_availability_to_user_access
13 m180910_044301_send_reminders_by_default
14 m180910_111500_service_fee
15 m180917_125436_alter_taxes
16 m180918_210458_create_queue_property_update_guest_min_price
17 m180919_201647_add_field_pta_logic_rate_to_availability
18 m180920_121126_alter_booking_add_service_fee
19 m180924_114511_update_taxes
20 m180924_123722_rate_related_taxes
21 m180925_112210_alter_tax_report_item_add_exempt_revenue
22 m180926_052930_zendesk_ticket
23 m180926_094005_alter_taxes
24 m180926_094434_alter_owner_service_fee_change_default_value
25 m180926_104813_set_to_empty_booking_service_fee
26 m180927_144140_alter_user_access_add_show_stripe_charge_for_owner
27 m180928_111851_alter_damage_report_add_pay_status
28 m181001_090709_alter_partner_add_photo
29 m181001_164012_copy_images_from_issue_bill
30 m181003_141848_taxes_to_vrbo_format
31 m181003_153031_email_add_template
32 m181009_163737_add_field_scan_status
33 m181010_051614_zendesk_export_job
34 m181010_130332_delete_dublicate_from_availability
35 m181010_134427_index_property_home_type
36 m181011_063237_add_index_for_property_parent_id
37 m181011_120504_alter_tax
38 m181016_110854_alter_default_housekeeper_remove_types
39
40*** applying m180521_113410_alter_table_housekeeping
41 > alter column booking_id in table {{booking_user_tag}} to INT(11) UNSIGNED DEFAULT NULL ... done (time: 0.356s)
42 > add column housekeeping_id INT(11) UNSIGNED DEFAULT NULL to table {{booking_user_tag}} ... done (time: 0.005s)
43 > add column creator_user_id INT(11) UNSIGNED DEFAULT NULL to table {{housekeeping}} ... done (time: 0.016s)
44 > add column property_id INT(11) UNSIGNED DEFAULT NULL to table {{housekeeping}} ... done (time: 0.003s)
45 > add column next_arrival DATE DEFAULT NULL to table {{housekeeping}} ... done (time: 0.007s)
46 > add column create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP to table {{housekeeping}} ... done (time: 0.015s)
47 > add column update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP to table {{housekeeping}} ... done (time: 0.004s)
48*** applied m180521_113410_alter_table_housekeeping (time: 0.461s)
49
50*** applying m180523_135504_alter_table_housekeeping_add_cleaning_date
51 > add column cleaning_date DATE to table {{housekeeping}} ... done (time: 0.011s)
52*** applied m180523_135504_alter_table_housekeeping_add_cleaning_date (time: 0.026s)
53
54*** applying m180724_131328_alter_housekeeping_add_description
55 > add column description TEXT to table {{housekeeping}} ... done (time: 0.010s)
56*** applied m180724_131328_alter_housekeeping_add_description (time: 0.019s)
57
58*** applying m180726_052619_add_table_housekeeping_comment
59 > alter column id in table {{housekeeping}} to INT(11) UNSIGNED NOT NULL AUTO_INCREMENT ... done (time: 0.212s)
60 > execute SQL:
61 CREATE TABLE IF NOT EXISTS {{housekeeping_comment}} (
62 `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
63 `user_id` INT(11) UNSIGNED NOT NULL,
64 `housekeeping_id` INT(11) UNSIGNED NOT NULL,
65 `comment` TEXT NOT NULL,
66 `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
67 PRIMARY KEY (`id`),
68 INDEX `{{housekeeping_comment}}_{{user}}_idx` (`user_id` ASC),
69 INDEX `{{housekeeping_comment}}_{{housekeeping}}_idx` (`housekeeping_id` ASC),
70 CONSTRAINT `{{housekeeping_comment}}_{{user}}_fk`
71 FOREIGN KEY (`user_id`)
72 REFERENCES {{user}} (`id`)
73 ON DELETE CASCADE
74 ON UPDATE CASCADE,
75 CONSTRAINT `{{housekeeping_comment}}_{{housekeeping}}_fk`
76 FOREIGN KEY (`housekeeping_id`)
77 REFERENCES {{housekeeping}} (`id`)
78 ON DELETE CASCADE
79 ON UPDATE CASCADE)
80 ENGINE = InnoDB
81 DEFAULT CHARACTER SET = utf8;
82 ... done (time: 0.035s)
83*** applied m180726_052619_add_table_housekeeping_comment (time: 0.249s)
84
85*** applying m180726_194310_add_index_for_booking_extended_from_id
86 > create index extended_from_id_idx on {{booking}} (extended_from_id) ... done (time: 0.374s)
87*** applied m180726_194310_add_index_for_booking_extended_from_id (time: 0.406s)
88
89*** applying m180801_102234_alter_booking_add_extended_dates
90 > add column extended_check_in DATE DEFAULT NULL to table {{booking}} ... done (time: 0.012s)
91 > add column extended_check_out DATE DEFAULT NULL to table {{booking}} ... done (time: 0.022s)
92 > create index booking_extended_check_in_idx on {{booking}} (extended_check_in) ... done (time: 0.191s)
93 > create index booking_extended_check_out_idx on {{booking}} (extended_check_out) ... done (time: 0.244s)
94*** applied m180801_102234_alter_booking_add_extended_dates (time: 0.478s)
95
96*** applying m180808_090651_update_extended_fields
97 > drop index booking_extended_check_in_idx ... done (time: 0.012s)
98 > drop index booking_extended_check_out_idx ... done (time: 0.013s)
99bool(false)
100Exception: Property "Booking.service_fee" is not defined. (/var/hosteeva-backend/vendor/yiisoft/yii/framework/base/CComponent.php:130)
101#0 /var/hosteeva-backend/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145): CComponent->__get('service_fee')
102#1 /var/hosteeva-backend/vendor/yiisoft/yii/framework/validators/CNumberValidator.php(78): CActiveRecord->__get('service_fee')
103#2 /var/hosteeva-backend/vendor/yiisoft/yii/framework/validators/CValidator.php(201): CNumberValidator->validateAttribute(Object(Booking), 'service_fee')
104#3 /var/hosteeva-backend/vendor/yiisoft/yii/framework/base/CModel.php(159): CValidator->validate(Object(Booking), Array)
105#4 /var/hosteeva-backend/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(810): CModel->validate(NULL)
106#5 /var/hosteeva-backend/protected/models/base/booking/BookingModel.php(168): CActiveRecord->save()
107#6 /var/hosteeva-backend/protected/migrations/m180808_090651_update_extended_fields.php(19): BookingModel->updateExtendedDates('54752')
108#7 /var/hosteeva-backend/vendor/yiisoft/yii/framework/db/CDbMigration.php(53): m180808_090651_update_extended_fields->safeUp()
109#8 /var/hosteeva-backend/vendor/yiisoft/yii/framework/cli/commands/MigrateCommand.php(415): CDbMigration->up()
110#9 /var/hosteeva-backend/vendor/yiisoft/yii/framework/cli/commands/MigrateCommand.php(109): MigrateCommand->migrateUp('m180808_090651_...')
111#10 [internal function]: MigrateCommand->actionUp(Array)
112#11 /var/hosteeva-backend/vendor/yiisoft/yii/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs(Object(MigrateCommand), Array)
113#12 /var/hosteeva-backend/vendor/yiisoft/yii/framework/console/CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
114#13 /var/hosteeva-backend/protected/controllers/ServerController.php(61): CConsoleCommandRunner->run(Array)
115#14 [internal function]: ServerController->actionMigrate('up')
116#15 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(ServerController), Array)
117#16 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(ServerController), Object(ReflectionMethod), Array)
118#17 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
119#18 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
120#19 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
121#20 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run('migrate')
122#21 /var/hosteeva-backend/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('server/migrate')
123#22 /var/hosteeva-backend/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
124#23 /var/hosteeva-backend/index.php(21): CApplication->run()
125#24 {main}
126*** failed to apply m180808_090651_update_extended_fields (time: 0.684s)
127
128
129Migration failed. All later migrations are canceled.