Compare commits
No commits in common. "dev" and "master" have entirely different histories.
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
0
.vscode/settings.json
vendored
Executable file → Normal file
0
.vscode/settings.json
vendored
Executable file → Normal file
0
api/BaseResponse.go
Executable file → Normal file
0
api/BaseResponse.go
Executable file → Normal file
0
api/api.go
Executable file → Normal file
0
api/api.go
Executable file → Normal file
0
api/image.go
Executable file → Normal file
0
api/image.go
Executable file → Normal file
0
api/location.go
Executable file → Normal file
0
api/location.go
Executable file → Normal file
0
api/middleware.go
Executable file → Normal file
0
api/middleware.go
Executable file → Normal file
0
api/news_event.go
Executable file → Normal file
0
api/news_event.go
Executable file → Normal file
0
api/region.go
Executable file → Normal file
0
api/region.go
Executable file → Normal file
0
api/reviews.go
Executable file → Normal file
0
api/reviews.go
Executable file → Normal file
0
api/server.go
Executable file → Normal file
0
api/server.go
Executable file → Normal file
0
api/tags.go
Executable file → Normal file
0
api/tags.go
Executable file → Normal file
0
api/test/location_test.go
Executable file → Normal file
0
api/test/location_test.go
Executable file → Normal file
0
api/test/main_test.go
Executable file → Normal file
0
api/test/main_test.go
Executable file → Normal file
0
api/test/user_test.go
Executable file → Normal file
0
api/test/user_test.go
Executable file → Normal file
0
api/token.go
Executable file → Normal file
0
api/token.go
Executable file → Normal file
0
api/user.go
Executable file → Normal file
0
api/user.go
Executable file → Normal file
0
data.ms/VERSION
Executable file → Normal file
0
data.ms/VERSION
Executable file → Normal file
0
data.ms/auth/data.mdb
Executable file → Normal file
0
data.ms/auth/data.mdb
Executable file → Normal file
BIN
data.ms/auth/lock.mdb
Executable file → Normal file
BIN
data.ms/auth/lock.mdb
Executable file → Normal file
Binary file not shown.
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/data.mdb
Executable file → Normal file
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/data.mdb
Executable file → Normal file
Binary file not shown.
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/lock.mdb
Executable file → Normal file
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/lock.mdb
Executable file → Normal file
Binary file not shown.
0
data.ms/instance-uid
Executable file → Normal file
0
data.ms/instance-uid
Executable file → Normal file
BIN
data.ms/tasks/data.mdb
Executable file → Normal file
BIN
data.ms/tasks/data.mdb
Executable file → Normal file
Binary file not shown.
BIN
data.ms/tasks/lock.mdb
Executable file → Normal file
BIN
data.ms/tasks/lock.mdb
Executable file → Normal file
Binary file not shown.
0
db/csv_seeder/images.csv
Executable file → Normal file
0
db/csv_seeder/images.csv
Executable file → Normal file
0
db/csv_seeder/kabupaten.csv
Executable file → Normal file
0
db/csv_seeder/kabupaten.csv
Executable file → Normal file
0
db/csv_seeder/locations.csv
Executable file → Normal file
0
db/csv_seeder/locations.csv
Executable file → Normal file
0
db/csv_seeder/provinsi.csv
Executable file → Normal file
0
db/csv_seeder/provinsi.csv
Executable file → Normal file
0
db/csv_seeder/regions.csv
Executable file → Normal file
0
db/csv_seeder/regions.csv
Executable file → Normal file
0
db/csv_seeder/reviews.csv
Executable file → Normal file
0
db/csv_seeder/reviews.csv
Executable file → Normal file
0
db/csv_seeder/tags.csv
Executable file → Normal file
0
db/csv_seeder/tags.csv
Executable file → Normal file
0
db/csv_seeder/user.csv
Executable file → Normal file
0
db/csv_seeder/user.csv
Executable file → Normal file
0
db/migrations/000001_init_schema.down.sql
Executable file → Normal file
0
db/migrations/000001_init_schema.down.sql
Executable file → Normal file
0
db/migrations/000001_init_schema.up.sql
Executable file → Normal file
0
db/migrations/000001_init_schema.up.sql
Executable file → Normal file
0
db/migrations/000002_add_approvedby_in_locations_table.down.sql
Executable file → Normal file
0
db/migrations/000002_add_approvedby_in_locations_table.down.sql
Executable file → Normal file
0
db/migrations/000002_add_approvedby_in_locations_table.up.sql
Executable file → Normal file
0
db/migrations/000002_add_approvedby_in_locations_table.up.sql
Executable file → Normal file
0
db/migrations/000003_create_user_activities.down.sql
Executable file → Normal file
0
db/migrations/000003_create_user_activities.down.sql
Executable file → Normal file
0
db/migrations/000003_create_user_activities.up.sql
Executable file → Normal file
0
db/migrations/000003_create_user_activities.up.sql
Executable file → Normal file
0
db/migrations/000004_create_images_table.down.sql
Executable file → Normal file
0
db/migrations/000004_create_images_table.down.sql
Executable file → Normal file
0
db/migrations/000004_create_images_table.up.sql
Executable file → Normal file
0
db/migrations/000004_create_images_table.up.sql
Executable file → Normal file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.down.sql
Executable file → Normal file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.down.sql
Executable file → Normal file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.up.sql
Executable file → Normal file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.up.sql
Executable file → Normal file
0
db/migrations/000006_create_user_sessions_table.down.sql
Executable file → Normal file
0
db/migrations/000006_create_user_sessions_table.down.sql
Executable file → Normal file
0
db/migrations/000006_create_user_sessions_table.up.sql
Executable file → Normal file
0
db/migrations/000006_create_user_sessions_table.up.sql
Executable file → Normal file
0
db/migrations/000007_create_user_follow_table.down.sql
Executable file → Normal file
0
db/migrations/000007_create_user_follow_table.down.sql
Executable file → Normal file
0
db/migrations/000007_create_user_follow_table.up.sql
Executable file → Normal file
0
db/migrations/000007_create_user_follow_table.up.sql
Executable file → Normal file
0
db/migrations/000008_alter_users_add_about_column.down.sql
Executable file → Normal file
0
db/migrations/000008_alter_users_add_about_column.down.sql
Executable file → Normal file
0
db/migrations/000008_alter_users_add_about_column.up.sql
Executable file → Normal file
0
db/migrations/000008_alter_users_add_about_column.up.sql
Executable file → Normal file
0
db/migrations/000009_alter_users_add_website_column.down.sql
Executable file → Normal file
0
db/migrations/000009_alter_users_add_website_column.down.sql
Executable file → Normal file
0
db/migrations/000009_alter_users_add_website_column.up.sql
Executable file → Normal file
0
db/migrations/000009_alter_users_add_website_column.up.sql
Executable file → Normal file
0
db/migrations/000010_create_news_event_table.down.sql
Executable file → Normal file
0
db/migrations/000010_create_news_event_table.down.sql
Executable file → Normal file
0
db/migrations/000010_create_news_event_table.up.sql
Executable file → Normal file
0
db/migrations/000010_create_news_event_table.up.sql
Executable file → Normal file
0
db/mock/store.go
Executable file → Normal file
0
db/mock/store.go
Executable file → Normal file
0
db/queries/follow.sql
Executable file → Normal file
0
db/queries/follow.sql
Executable file → Normal file
0
db/queries/images.sql
Executable file → Normal file
0
db/queries/images.sql
Executable file → Normal file
0
db/queries/locations.sql
Executable file → Normal file
0
db/queries/locations.sql
Executable file → Normal file
0
db/queries/news_events.sql
Executable file → Normal file
0
db/queries/news_events.sql
Executable file → Normal file
0
db/queries/provinces.sql
Executable file → Normal file
0
db/queries/provinces.sql
Executable file → Normal file
0
db/queries/regencies.sql
Executable file → Normal file
0
db/queries/regencies.sql
Executable file → Normal file
0
db/queries/regions.sql
Executable file → Normal file
0
db/queries/regions.sql
Executable file → Normal file
0
db/queries/reviews.sql
Executable file → Normal file
0
db/queries/reviews.sql
Executable file → Normal file
0
db/queries/sessions.sql
Executable file → Normal file
0
db/queries/sessions.sql
Executable file → Normal file
0
db/queries/users.sql
Executable file → Normal file
0
db/queries/users.sql
Executable file → Normal file
0
db/sqlc/db.go
Executable file → Normal file
0
db/sqlc/db.go
Executable file → Normal file
0
db/sqlc/error.go
Executable file → Normal file
0
db/sqlc/error.go
Executable file → Normal file
0
db/sqlc/follow.sql.go
Executable file → Normal file
0
db/sqlc/follow.sql.go
Executable file → Normal file
0
db/sqlc/images.go
Executable file → Normal file
0
db/sqlc/images.go
Executable file → Normal file
0
db/sqlc/images.sql.go
Executable file → Normal file
0
db/sqlc/images.sql.go
Executable file → Normal file
0
db/sqlc/locations.go
Executable file → Normal file
0
db/sqlc/locations.go
Executable file → Normal file
0
db/sqlc/locations.sql.go
Executable file → Normal file
0
db/sqlc/locations.sql.go
Executable file → Normal file
0
db/sqlc/models.go
Executable file → Normal file
0
db/sqlc/models.go
Executable file → Normal file
0
db/sqlc/news_events.go
Executable file → Normal file
0
db/sqlc/news_events.go
Executable file → Normal file
0
db/sqlc/news_events.sql.go
Executable file → Normal file
0
db/sqlc/news_events.sql.go
Executable file → Normal file
0
db/sqlc/provinces.sql.go
Executable file → Normal file
0
db/sqlc/provinces.sql.go
Executable file → Normal file
0
db/sqlc/querier.go
Executable file → Normal file
0
db/sqlc/querier.go
Executable file → Normal file
0
db/sqlc/regencies.sql.go
Executable file → Normal file
0
db/sqlc/regencies.sql.go
Executable file → Normal file
0
db/sqlc/regions.sql.go
Executable file → Normal file
0
db/sqlc/regions.sql.go
Executable file → Normal file
0
db/sqlc/reviews.go
Executable file → Normal file
0
db/sqlc/reviews.go
Executable file → Normal file
0
db/sqlc/reviews.sql.go
Executable file → Normal file
0
db/sqlc/reviews.sql.go
Executable file → Normal file
0
db/sqlc/sessions.sql.go
Executable file → Normal file
0
db/sqlc/sessions.sql.go
Executable file → Normal file
0
db/sqlc/store.go
Executable file → Normal file
0
db/sqlc/store.go
Executable file → Normal file
0
db/sqlc/test/locations_test.go
Executable file → Normal file
0
db/sqlc/test/locations_test.go
Executable file → Normal file
0
db/sqlc/test/main_test.go
Executable file → Normal file
0
db/sqlc/test/main_test.go
Executable file → Normal file
0
db/sqlc/test/users_test.go
Executable file → Normal file
0
db/sqlc/test/users_test.go
Executable file → Normal file
0
db/sqlc/tx_location.go
Executable file → Normal file
0
db/sqlc/tx_location.go
Executable file → Normal file
0
db/sqlc/users.go
Executable file → Normal file
0
db/sqlc/users.go
Executable file → Normal file
0
db/sqlc/users.sql.go
Executable file → Normal file
0
db/sqlc/users.sql.go
Executable file → Normal file
0
dev.env.example
Executable file → Normal file
0
dev.env.example
Executable file → Normal file
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cp ./db/csv_seeder/* /tmp/
|
cp ./db/csv_seeder/* /tmp/
|
||||||
|
|
||||||
# SEEDING MAIN DATAABSE
|
|
||||||
sudo -u postgres psql \
|
sudo -u postgres psql \
|
||||||
-c '\copy users(id,username,password) FROM '"'/tmp/user.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
-c '\copy users(id,username,password) FROM '"'/tmp/user.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
||||||
-c '\copy regions(id, region_name) FROM '"'/tmp/regions.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
-c '\copy regions(id, region_name) FROM '"'/tmp/regions.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
||||||
@ -12,8 +10,6 @@ sudo -u postgres psql \
|
|||||||
-c '\copy images(id,image_url,uploaded_by,image_type,image_of) FROM '"'/tmp/images.csv'"' DELIMITER '"'#'"' CSV HEADER;' \
|
-c '\copy images(id,image_url,uploaded_by,image_type,image_of) FROM '"'/tmp/images.csv'"' DELIMITER '"'#'"' CSV HEADER;' \
|
||||||
-c '\copy tags(id,name,submitted_by,target_id,tags_type) FROM '"'/tmp/tags.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
-c '\copy tags(id,name,submitted_by,target_id,tags_type) FROM '"'/tmp/tags.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
||||||
-d hiling_dev &&
|
-d hiling_dev &&
|
||||||
|
|
||||||
# SEEDING TEST DATABASE
|
|
||||||
sudo -u postgres psql \
|
sudo -u postgres psql \
|
||||||
-c '\copy users(id,username,password) FROM '"'/tmp/user.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
-c '\copy users(id,username,password) FROM '"'/tmp/user.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
||||||
-c '\copy regions(id, region_name) FROM '"'/tmp/regions.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
-c '\copy regions(id, region_name) FROM '"'/tmp/regions.csv'"' DELIMITER '"','"' CSV HEADER;' \
|
||||||
|
0
user_stories
Executable file → Normal file
0
user_stories
Executable file → Normal file
@ -1,2 +0,0 @@
|
|||||||
package cloudfare
|
|
||||||
|
|
0
util/config.go
Executable file → Normal file
0
util/config.go
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user