chore: 调整初始化flyway
This commit is contained in:
parent
a75fb66f11
commit
4115a54585
|
@ -4,7 +4,7 @@ SET SESSION innodb_lock_wait_timeout = 7200;
|
||||||
-- 初始化组织
|
-- 初始化组织
|
||||||
INSERT INTO organization (id, num, name, description, create_user, update_user, create_time, update_time) VALUES ('100001', 100001, '默认组织', '系统默认创建的组织', 'admin', 'admin', unix_timestamp() * 1000, unix_timestamp() * 1000);
|
INSERT INTO organization (id, num, name, description, create_user, update_user, create_time, update_time) VALUES ('100001', 100001, '默认组织', '系统默认创建的组织', 'admin', 'admin', unix_timestamp() * 1000, unix_timestamp() * 1000);
|
||||||
-- 初始化项目
|
-- 初始化项目
|
||||||
INSERT INTO project (id, num, organization_id, name, description, create_user, update_user, create_time, update_time, module_setting) VALUES ('100001100001', 100001, (SELECT id FROM organization WHERE name LIKE '默认组织'), '默认项目', '系统默认创建的项目', 'admin', 'admin', unix_timestamp() * 1000, unix_timestamp() * 1000,'["workstation","loadTest","testPlan","bugManagement","caseManagement","apiTest","uiTest"]');
|
INSERT INTO project (id, num, organization_id, name, description, create_user, update_user, create_time, update_time, module_setting) VALUES ('100001100001', 100001, (SELECT id FROM organization WHERE name LIKE '默认组织'), '默认项目', '系统默认创建的项目', 'admin', 'admin', unix_timestamp() * 1000, unix_timestamp() * 1000,'["bugManagement","caseManagement","apiTest"]');
|
||||||
|
|
||||||
-- 初始化用户
|
-- 初始化用户
|
||||||
insert into user(id, name, email, password, create_time, update_time, language, last_organization_id, phone, source, last_project_id, create_user, update_user,deleted)
|
insert into user(id, name, email, password, create_time, update_time, language, last_organization_id, phone, source, last_project_id, create_user, update_user,deleted)
|
||||||
|
@ -269,7 +269,7 @@ INSERT into system_parameter values('base.url', 'http://127.0.0.1:8081', 'text')
|
||||||
INSERT into system_parameter values('base.prometheus.host', 'http://prometheus:9090', 'text');
|
INSERT into system_parameter values('base.prometheus.host', 'http://prometheus:9090', 'text');
|
||||||
|
|
||||||
-- 初始化资源池
|
-- 初始化资源池
|
||||||
INSERT INTO test_resource_pool (id, name, type, description, enable, create_time, update_time, create_user, api_test, load_test, ui_test, all_org, deleted) VALUES (uuid_short(), '默认资源池', 'Node', '系统初始化资源池', true, UNIX_TIMESTAMP() * 1000, UNIX_TIMESTAMP() * 1000, 'admin', true, true, true, true, false);
|
INSERT INTO test_resource_pool (id, name, type, description, enable, create_time, update_time, create_user, api_test, load_test, ui_test, all_org, deleted) VALUES (uuid_short(), '默认资源池', 'Node', '系统初始化资源池', true, UNIX_TIMESTAMP() * 1000, UNIX_TIMESTAMP() * 1000, 'admin', true, false, false, true, false);
|
||||||
INSERT INTO test_resource_pool_blob (id, configuration) VALUES ((select id from test_resource_pool where name = '默认资源池'), 0x504B0304140008080800FD967E57000000000000000000000000030000007A6970ED58518F9B3810FE2B08F5313459A93ADDF1C6266E966D422260AB3B351572C049DC808D8CD96B14E5BF770C9B2C21987DE8D3E9962798F9FCF99B61EC311CCD94E32424857433BC25A66D9A838BE981E0BCB6309E9062460B69DADF8E265556898BBD254AC6880040CE05F8CC3F47A3113C659C51C90518FEBAAB0C316771290461D22BB3358CB0C17EFA3EA8A85899A60353F23D61E707863352E4382667C32D416DCF7912EE04C14971B6FCE0EB09D950104039F09938A75F8928E0C136D658C6BBE1F3DD8AED294B6CE391AF572C23122758627BC50C23C56B9216D5AD6148C8814501F7E118A2208CDCC949399438657B5CDC479E3347602C72125783722C709A929416996DDC298B24599E62495E38AF6653D7D58C3DB31AC6651275E14D15E3A1311072E130499D5B0FF804D910C85F32290565DB20DE91A44CE1CEDD327E31A39F242E55DEAEC61A865571BFF08644642DFF258E80A4248637DFE187D055F6D14F9052A8D7517482D4647B72B0CF69E8C61806CF89C06A26C3653ACC334E4BA29BA69EAA9DE3E62579CE53BE3D7C5172F625541D23A0EA23E5C31D2FA42A83F6A07F09DDEE24BCF9D1E8EC82CA9598C22A690AB1C09C65186AB09DE862D7B65871DB32846567A9FC7CBC4613F67CC357176B103A7E1885EE1CB5155739B28D95F9E1F80A3AADCC6E9EA9EF784F33C777C37F7A881A282DD3E31C85C88F7CB45CF86110858BA53BD650C24AEB009FBA792B64B07C403E8A9EFC9996B285D3B0F928583CF9630405A2656A60342CF7CEF80BF226D1CC0D42E421BF27756DA8367FF78B451884BEB38C02E47F8550B4FA6E90BA589DD05DF448ABFC5A3DF5BB893EBB9EA34B7A45D28069B95E96A436A2EE257B19FDE0236712794FF31E1DAF20AD8A07E42CB51294535B335588BD15F382E8670085B337966C0BD9F376CE35EA4DD0DFBD844DA0966FB698BEB1642F084D8CD371E4CCA6BA7A833DA4F65F8DA6EA88D2D80FDCB93345B788259C03963CA5316CDBEEC6E372091D074E0E4D602DE207746322AEFA249C63DA1DC37ADDC397E0B68D3FE094336A2BCF05973CE62914E0F8AA6E9E795A6664CE4BD6C19C29F312CB9D6D0CD58EDE66AD7556BD70435352F48DAFA3B1A06575B380A34DF29B7D684B98EAC2C4124425EEBD1DDDF0BEB7A3B6BEF776D4A1E3BD1DE908FF4FEDA8DE45FF1BBD03629058C873601E797E6DA4B5EAEBEF1DF80A96870985EFB5E3E936F22E916F8D694832076642F2941F3CF09C7F0494742A6862DAE64ECADC1E0E0BF83665B4CCAC5DB9B63FC105A3B65424E39B5F0B9F0626175B57FD53F8F6FDF40B504B0708DDC8DEC7B603000023110000504B01021400140008080800FD967E57DDC8DEC7B6030000231100000300000000000000000000000000000000007A6970504B0506000000000100010031000000E70300000000);
|
INSERT INTO test_resource_pool_blob (id, configuration) VALUES ((select id from test_resource_pool where name = '默认资源池'), 0x504B0304140008080800FD967E57000000000000000000000000030000007A6970ED58518F9B3810FE2B08F5313459A93ADDF1C6266E966D422260AB3B351572C049DC808D8CD96B14E5BF770C9B2C21987DE8D3E9962798F9FCF99B61EC311CCD94E32424857433BC25A66D9A838BE981E0BCB6309E9062460B69DADF8E265556898BBD254AC6880040CE05F8CC3F47A3113C659C51C90518FEBAAB0C316771290461D22BB3358CB0C17EFA3EA8A85899A60353F23D61E707863352E4382667C32D416DCF7912EE04C14971B6FCE0EB09D950104039F09938A75F8928E0C136D658C6BBE1F3DD8AED294B6CE391AF572C23122758627BC50C23C56B9216D5AD6148C8814501F7E118A2208CDCC949399438657B5CDC479E3347602C72125783722C709A929416996DDC298B24599E62495E38AF6653D7D58C3DB31AC6651275E14D15E3A1311072E130499D5B0FF804D910C85F32290565DB20DE91A44CE1CEDD327E31A39F242E55DEAEC61A865571BFF08644642DFF258E80A4248637DFE187D055F6D14F9052A8D7517482D4647B72B0CF69E8C61806CF89C06A26C3653ACC334E4BA29BA69EAA9DE3E62579CE53BE3D7C5172F625541D23A0EA23E5C31D2FA42A83F6A07F09DDEE24BCF9D1E8EC82CA9598C22A690AB1C09C65186AB09DE862D7B65871DB32846567A9FC7CBC4613F67CC357176B103A7E1885EE1CB5155739B28D95F9E1F80A3AADCC6E9EA9EF784F33C777C37F7A881A282DD3E31C85C88F7CB45CF86110858BA53BD650C24AEB009FBA792B64B07C403E8A9EFC9996B285D3B0F928583CF9630405A2656A60342CF7CEF80BF226D1CC0D42E421BF27756DA8367FF78B451884BEB38C02E47F8550B4FA6E90BA589DD05DF448ABFC5A3DF5BB893EBB9EA34B7A45D28069B95E96A436A2EE257B19FDE0236712794FF31E1DAF20AD8A07E42CB51294535B335588BD15F382E8670085B337966C0BD9F376CE35EA4DD0DFBD844DA0966FB698BEB1642F084D8CD371E4CCA6BA7A833DA4F65F8DA6EA88D2D80FDCB93345B788259C03963CA5316CDBEEC6E372091D074E0E4D602DE207746322AEFA249C63DA1DC37ADDC397E0B68D3FE094336A2BCF05973CE62914E0F8AA6E9E795A6664CE4BD6C19C29F312CB9D6D0CD58EDE66AD7556BD70435352F48DAFA3B1A06575B380A34DF29B7D684B98EAC2C4124425EEBD1DDDF0BEB7A3B6BEF776D4A1E3BD1DE908FF4FEDA8DE45FF1BBD03629058C873601E797E6DA4B5EAEBEF1DF80A96870985EFB5E3E936F22E916F8D694832076642F2941F3CF09C7F0494742A6862DAE64ECADC1E0E0BF83665B4CCAC5DB9B63FC105A3B65424E39B5F0B9F0626175B57FD53F8F6FDF40B504B0708DDC8DEC7B603000023110000504B01021400140008080800FD967E57DDC8DEC7B6030000231100000300000000000000000000000000000000007A6970504B0506000000000100010031000000E70300000000);
|
||||||
|
|
||||||
-- 初始化默认项目与默认资源池的关系
|
-- 初始化默认项目与默认资源池的关系
|
||||||
|
|
Loading…
Reference in New Issue