Skip to content

Commit 3cc9f3f

Browse files
author
Prachi Damle
committed
Adding defaults to new columns
1 parent ef4d04f commit 3cc9f3f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

engine/orchestration/test/org/apache/cloudstack/engine/provisioning/test/ProvisioningTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ private void registerAndEnableHost() {
127127

128128
@Test
129129
public void testProvisioning() {
130-
//registerAndEnableZone();
131-
//registerAndEnablePod();
132-
//registerAndEnableCluster();
130+
registerAndEnableZone();
131+
registerAndEnablePod();
132+
registerAndEnableCluster();
133133
registerAndEnableHost();
134134
}
135135

setup/db/4.1-new-db-schema.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ alter table vm_instance add column disk_offering_id bigint unsigned;
2727
alter table data_center add column owner varchar(255);
2828
alter table data_center add column created datetime COMMENT 'date created';
2929
alter table data_center add column lastUpdated datetime COMMENT 'last updated';
30-
alter table data_center add column engine_state varchar(32) NOT NULL COMMENT 'the engine state of the zone';
30+
alter table data_center add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'the engine state of the zone';
3131
alter table host_pod_ref add column owner varchar(255);
3232
alter table host_pod_ref add column created datetime COMMENT 'date created';
3333
alter table host_pod_ref add column lastUpdated datetime COMMENT 'last updated';
34-
alter table host_pod_ref add column engine_state varchar(32) NOT NULL COMMENT 'the engine state of the zone';
34+
alter table host_pod_ref add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'the engine state of the zone';
3535
alter table host add column owner varchar(255);
3636
alter table host add column lastUpdated datetime COMMENT 'last updated';
37-
alter table host add column engine_state varchar(32) NOT NULL COMMENT 'the engine state of the zone';
37+
alter table host add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'the engine state of the zone';
3838

3939

4040
alter table cluster add column owner varchar(255);
4141
alter table cluster add column created datetime COMMENT 'date created';
4242
alter table cluster add column lastUpdated datetime COMMENT 'last updated';
43-
alter table cluster add column engine_state varchar(32) NOT NULL COMMENT 'the engine state of the zone';
43+
alter table cluster add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'the engine state of the zone';
4444

4545
CREATE TABLE `cloud`.`data_store_provider` (
4646
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',

0 commit comments

Comments
 (0)