MIFOSX-949 cleaning up db upgrades and externalizing remaining properties
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
ALTER TABLE `tenants`
|
||||
ADD COLUMN `pool_initial_size` int(5) DEFAULT 5 AFTER `auto_update`,
|
||||
ADD COLUMN `pool_validation_interval` int(11) DEFAULT 30000,
|
||||
ADD COLUMN `pool_remove_abandoned` tinyint(1) DEFAULT 1,
|
||||
ADD COLUMN `pool_remove_abandoned_timeout` int(5) DEFAULT 60,
|
||||
ADD COLUMN `pool_log_abandoned` tinyint(1) DEFAULT 1,
|
||||
ADD COLUMN `pool_abandon_when_percentage_full` int(5) DEFAULT 50,
|
||||
ADD COLUMN `pool_test_on_borrow` tinyint(1) DEFAULT 1,
|
||||
ADD COLUMN `pool_max_active` int(5) DEFAULT 40,
|
||||
ADD COLUMN `pool_min_idle` int(5) DEFAULT 20,
|
||||
ADD COLUMN `pool_max_idle` int(5) DEFAULT 10,
|
||||
ADD COLUMN `pool_suspect_timeout` int(5) DEFAULT 60,
|
||||
ADD COLUMN `pool_time_between_eviction_runs_millis` int(11) DEFAULT 34000,
|
||||
ADD COLUMN `pool_min_evictable_idle_time_millis` int(11) DEFAULT 60000;
|
||||
@@ -73,13 +73,19 @@ CREATE TABLE `tenants` (
|
||||
`schema_username` varchar(100) NOT NULL DEFAULT 'root',
|
||||
`schema_password` varchar(100) NOT NULL DEFAULT 'mysql',
|
||||
`auto_update` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`initial_size` int(5) DEFAULT NULL,
|
||||
`validation_interval` int(60) DEFAULT NULL,
|
||||
`remove_abandoned` varchar(10) DEFAULT NULL,
|
||||
`remove_abandoned_timeout` int(10) DEFAULT NULL,
|
||||
`log_abandoned` varchar(10) DEFAULT NULL,
|
||||
`abondoned_when_percentage_full` int(10) DEFAULT NULL,
|
||||
`test_on_borrow` varchar(10) DEFAULT NULL,
|
||||
`pool_initial_size` int(5) DEFAULT 5,
|
||||
`pool_validation_interval` int(11) DEFAULT 30000,
|
||||
`pool_remove_abandoned` tinyint(1) DEFAULT 1,
|
||||
`pool_remove_abandoned_timeout` int(5) DEFAULT 60,
|
||||
`pool_log_abandoned` tinyint(1) DEFAULT 1,
|
||||
`pool_abandon_when_percentage_full` int(5) DEFAULT 50,
|
||||
`pool_test_on_borrow` tinyint(1) DEFAULT 1,
|
||||
`pool_max_active` int(5) DEFAULT 40,
|
||||
`pool_min_idle` int(5) DEFAULT 20,
|
||||
`pool_max_idle` int(5) DEFAULT 10,
|
||||
`pool_suspect_timeout` int(5) DEFAULT 60,
|
||||
`pool_time_between_eviction_runs_millis` int(11) DEFAULT 34000,
|
||||
`pool_min_evictable_idle_time_millis` int(11) DEFAULT 60000,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
Reference in New Issue
Block a user