20 Commits

Author SHA1 Message Date
Erik Weber
396936ea5e Add absolute schema references to support MySQL 5.6 better 2015-01-14 14:52:47 +01:00
Rohit Yadav
c63dbb8804 db: Refactor new change in create-schema/premium to schema40-410.sql
- Move changes since 4.0 to schema upgrade path (schema40-410.sql)
- Comment out some table names where we're trying to copy uuid from id, they
  don't exists
- We don't run above step for tables which are newly created for 410 and don't
  exist in 4.0 for example autoscale related ones, code is commented and not removed
- Drop indexes which are removed before dropping the column
- Comment out insertion, as for default region we're inserting the same in
  code, in ConfigurationServerImpl:createDefaultRegion(), fix same in premium

Testing;
Deployed fresh 4.0 database, compiled and ran mgmt server. It did a smooth
rolling upgrade from 4.0 to 4.1.0 with no database exceptions or any other db error.

TODO:
- 4.2.0 relates changes like ipv6 should go into its schema-410to420.sql

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-16 17:12:26 +05:30
Kishan Kavala
7d61ee6e99 CLOUDSTACK-1295 : Added usage unit tests
Fixed Component annontation for usage parsers
Fixed mvn target to run usage
removed UsageServerComponentConfig which is not required
Added region_id to account table in cloud_usage db

Conflicts:
	setup/db/db/schema-40to410.sql
2013-02-15 18:41:28 +05:30
Kishan Kavala
199806c1be CLOUDSTACK-560 : Add default zone column to account table in cloud_usage table in fresh install and upgrade 2012-12-10 19:37:57 +05:30
David Nalley
fc3ac862dc applying the commits from Chip Childers licensing cleanup 2012-06-26 10:44:04 -04:00
frank
2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Alena Prokharchyk
686761686f bug 14170: fixed #4-6 and #9-13 2012-03-07 16:37:24 -08:00
Alena Prokharchyk
2e9511e2ae Changed isElastic to isSystem for the publicIpAddress assigned during the vm deployment in EIP enabled network
Reviewed-by: Chiradeep
2012-02-21 15:39:49 -08:00
kishan
ced6fd46b8 Bug 12954: Added usage for security groups. Usage will be generated for each security group that is assigned to a Vm.
Status 12954: resolved fixed
Reviewed-By: Nitin
2012-02-17 13:50:18 +05:30
kishan
a388ed792f Bug 13326: Added is_elastic flag to IP address usage. Added new column in usage_ip_address, defaults to false. size column will contain is_elastic info in cloud_usage table
Status 13326: resolved fixed
Reviewed-By: Nitin
2012-02-03 18:01:30 +05:30
frank
9c1b8ef673 add copyright delcartion to all sql files 2012-01-11 17:31:10 -08:00
kishan
06ad936192 bug 12134: Added uuid column to cloud_usage account table
status 12134: resolved fixed
reviewed-by: Abhi
2011-11-28 13:05:02 +05:30
kishan
507bc20c03 bug 11938: Removed unique constraint on usage_network_offering table.
status 11938: resolved fixed
reviewed-by: Abhi
2011-11-09 16:28:22 +05:30
kishan
18ef8ca3b4 bug 11173: Added usage for VPN users
status 11173: resolved fixed
2011-11-01 17:01:48 +05:30
kishan
284ee3909e bug 9842: Added task to update user stats agg bytes in sync with aggregation range
status 9842: resolved fixed
2011-10-31 17:15:36 +05:30
alena
eba6864965 bug 11667: drop primary keys in cloud_usage.usage_load_balancer_policy and cloud_usage.usage_port_forwarding
status 11667: resolved fixed

Conflicts:

	server/src/com/cloud/user/AccountManagerImpl.java
2011-10-07 11:02:14 -07:00
kishan
6303ab8a10 Remove unused tables event and usage_security_group from cloud_usage schema. 2011-09-21 18:12:44 +05:30
kishan
96c51df0d5 bug 11344: Added constarints on usage helper tables. Added corresponding alter queries in upgrade script
status 11344: resolved fixed
Reviewed-by: Nitin
2011-09-16 18:21:06 +05:30
kishan
1b44c0c8f5 bug 11199: Added indexes to tables in cloud_usage DB in create-schema-premium.sql
status 11199: resolved fixed
2011-09-13 17:57:21 +05:30
frank
b3478c377e Full opensource 2011-08-23 19:52:19 -07:00