Using local Postgres database instead of remote (#6241)

* Using local Postgres database instead of remote

* Added createdb and usedb at the top
This commit is contained in:
yatinappsmith 2021-07-30 11:41:14 +05:30 committed by GitHub
parent 1c70a104a6
commit a665b943c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -5,11 +5,11 @@
"mongo-username": "cypress-test", "mongo-username": "cypress-test",
"mongo-password": "RaopEmky505xYV4p", "mongo-password": "RaopEmky505xYV4p",
"mongo-authenticationAuthtype": "SCRAM-SHA-1", "mongo-authenticationAuthtype": "SCRAM-SHA-1",
"postgres-host": "postgres-test-db.cz8diybf9wdj.ap-south-1.rds.amazonaws.com", "postgres-host": "localhost",
"postgres-port": 5432, "postgres-port": 5432,
"postgres-databaseName": "fakeapi", "postgres-databaseName": "fakeapi",
"postgres-username": "postgres", "postgres-username": "postgres",
"postgres-password": "Appsmith2019#", "postgres-password": "postgres",
"restapi-url": "https://my-json-server.typicode.com/typicode/demo/posts", "restapi-url": "https://my-json-server.typicode.com/typicode/demo/posts",
"mongo-defaultDatabaseName": "sample_airbnb", "mongo-defaultDatabaseName": "sample_airbnb",
"connection-type": "Replica set", "connection-type": "Replica set",

View File

@ -1,3 +1,6 @@
CREATE DATABASE fakeapi;
\c fakeapi;
CREATE TABLE public.configs ( CREATE TABLE public.configs (
id integer NOT NULL, id integer NOT NULL,
"configName" text NOT NULL, "configName" text NOT NULL,
@ -50,4 +53,5 @@ values (3, 'New Config', '{"key": "val1"}', 1, '2020-08-26 11:14:28.458209+00',
insert into public.users (id, name, "createdAt", "updatedAt", status, gender, avatar, email, address, role, dob, "phoneNo") values insert into public.users (id, name, "createdAt", "updatedAt", status, gender, avatar, email, address, role, dob, "phoneNo") values
(7, 'Test user 7', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''), (7, 'Test user 7', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''),
(8, 'Test user 8', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''), (8, 'Test user 8', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''),
(9, 'Test user 9', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', '') (9, 'Test user 9', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', '');