forked from onlydustxyz/marketplace-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce new DB schema and new migration set.
- Loading branch information
1 parent
8fb48b8
commit 1748a94
Showing
7 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[print_schema] | ||
file = "new-github-indexer/infrastructure/src/adapters/postgres_clean_storage/schema.rs" | ||
schema = "indexer_clean" | ||
custom_type_derives = ["diesel::query_builder::QueryId"] |
1 change: 1 addition & 0 deletions
1
...-indexer/infrastructure/migrations_indexer_clean/2023-09-28-152513_create_schema/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
drop schema indexer_clean; |
1 change: 1 addition & 0 deletions
1
...ub-indexer/infrastructure/migrations_indexer_clean/2023-09-28-152513_create_schema/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create schema indexer_clean; |
1 change: 1 addition & 0 deletions
1
...xer/infrastructure/migrations_indexer_clean/2023-09-28-152914_create_repos_table/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
drop table indexer_clean.repos; |
5 changes: 5 additions & 0 deletions
5
...dexer/infrastructure/migrations_indexer_clean/2023-09-28-152914_create_repos_table/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
create table indexer_clean.repos | ||
( | ||
repo_id bigint primary key, | ||
value jsonb not null | ||
); |
10 changes: 10 additions & 0 deletions
10
...structure/new-github-indexer/infrastructure/src/adapters/postgres_clean_storage/schema.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// @generated automatically by Diesel CLI. | ||
|
||
pub mod indexer_clean { | ||
diesel::table! { | ||
indexer_clean.repos (repo_id) { | ||
repo_id -> Int8, | ||
value -> Jsonb, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters