Skip to content

Commit 6454f3f

Browse files
authored
Merge pull request #15 from devtron-labs/migration-default-entry
defautl git, project, and environment added in migration script
2 parents c411b64 + 78696dc commit 6454f3f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/sql/1_insert.up.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5966,7 +5966,14 @@ INSERT INTO "public"."users" ("id", "fname", "lname", "password", "access_token"
59665966
INSERT INTO "public"."user_roles" ("id", "user_id", "role_id", "created_by", "created_on", "updated_by", "updated_on") VALUES
59675967
('1', '2', '1', NULL, NULL, NULL, NULL);
59685968

5969+
INSERT INTO "public"."git_provider" ("id", "name", "url", "user_name", "password", "ssh_key", "access_token", "auth_mode", "active", "created_on", "created_by", "updated_on", "updated_by") VALUES
5970+
('1', 'Github Public', 'github.com', NULL, NULL, NULL, NULL, 'ANONYMOUS', 't', 'now()', '1', 'now()', '1');
59695971

5972+
INSERT INTO "public"."team" ("id", "name", "active", "created_on", "created_by", "updated_on", "updated_by") VALUES
5973+
('1', 'devtron', 't', 'now()', '1', 'now()', '1');
5974+
5975+
INSERT INTO "public"."environment" ("id", "environment_name", "cluster_id", "active", "created_on", "created_by", "updated_on", "updated_by", "default", "namespace", "grafana_datasource_id") VALUES
5976+
('1', 'devtron', '1', 't', 'now()', '1', 'now()', '1', 'f', 'devtron', '0');
59705977
--
59715978
-- PostgreSQL database dump complete
59725979
--

0 commit comments

Comments
 (0)