2022-04-29 03:03:16 +00:00
|
|
|
-- +goose NO TRANSACTION
|
|
|
|
-- +goose Up
|
|
|
|
-- this is generated by a script
|
2022-05-10 10:45:57 +00:00
|
|
|
SELECT add_data_node('dn3', host => 'data-node-3', port => 5432, database => 'vulcanize_testing_v4', password => 'password');
|
|
|
|
SELECT add_data_node('dn2', host => 'data-node-2', port => 5432, database => 'vulcanize_testing_v4', password => 'password');
|
|
|
|
SELECT add_data_node('dn1', host => 'data-node-1', port => 5432, database => 'vulcanize_testing_v4', password => 'password');
|
2022-05-02 04:33:25 +00:00
|
|
|
|
2022-04-29 03:03:16 +00:00
|
|
|
CALL distributed_exec($$ CREATE SCHEMA eth $$);
|
|
|
|
|
|
|
|
-- +goose Down
|
|
|
|
-- this is generated by a script
|
|
|
|
CALL distributed_exec($$ DROP SCHEMA eth $$);
|
2022-05-02 04:33:25 +00:00
|
|
|
|
2022-04-29 03:03:16 +00:00
|
|
|
SELECT delete_data_node('dn1', force => true, if_attached => true);
|
|
|
|
SELECT delete_data_node('dn2', force => true, if_attached => true);
|
2022-05-02 04:33:25 +00:00
|
|
|
SELECT delete_data_node('dn3', force => true, if_attached => true);
|