Skip to content

Commit 4961d10

Browse files
author
shotexa
authored
refactor: clean up migrations (#830)
* Add everything Signed-off-by: Shota Jolbordi <[email protected]> * Remove migration tests Signed-off-by: Shota Jolbordi <[email protected]> * add ingnore invalid create option for postres mega linter Signed-off-by: Shota Jolbordi <[email protected]> * Try mega linter 7 Signed-off-by: Shota Jolbordi <[email protected]> * edit megalinter.yaml Signed-off-by: Shota Jolbordi <[email protected]> * Disable some linters Signed-off-by: Shota Jolbordi <[email protected]> --------- Signed-off-by: Shota Jolbordi <[email protected]>
1 parent 15e6865 commit 4961d10

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+318
-801
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fetch-depth: 0
2626
- name: Mega-Linter
2727
id: ml
28-
uses: megalinter/megalinter@v6
28+
uses: megalinter/megalinter@v7
2929
- name: Archive production artifacts
3030
if: success() || failure()
3131
uses: actions/upload-artifact@v3

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ out/
2020
**/.bloop/
2121
*.worksheet.sc
2222
**/metals.sbt
23-
prism-interactive-demo-web/src/protos/intdemo
24-
*.aux
23+
*.aux
2524
*.toc
2625
*.pdf
2726
.idea_modules
@@ -35,3 +34,4 @@ mill
3534
client-storage.txt
3635
.bsp
3736
*.sc
37+
megalinter-reports

.mega-linter.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@
44
APPLY_FIXES: all
55
DEFAULT_BRANCH: main
66
DISABLE_LINTERS: [
7-
REPOSITORY_DEVSKIM,
8-
REPOSITORY_GITLEAKS,
9-
DOCKERFILE_HADOLINT,
10-
REPOSITORY_TRIVY,
11-
REPOSITORY_CHECKOV,
12-
REPOSITORY_SECRETLINT,
13-
SCALA_SCALAFIX,
14-
SQL_TSQLLINT,
15-
C_CPPLINT, # For pollux/lib/anoncreds/src/main/c
16-
CPP_CPPLINT, # For pollux/lib/anoncreds/src/main/c
17-
JAVA_CHECKSTYLE, # For pollux/lib/anoncreds/src/main/java
7+
REPOSITORY_DEVSKIM,
8+
REPOSITORY_GITLEAKS,
9+
DOCKERFILE_HADOLINT,
10+
REPOSITORY_TRIVY,
11+
REPOSITORY_CHECKOV,
12+
REPOSITORY_SECRETLINT,
13+
SCALA_SCALAFIX,
14+
SQL_TSQLLINT,
15+
C_CPPLINT, # For pollux/lib/anoncreds/src/main/c
16+
CPP_CPPLINT, # For pollux/lib/anoncreds/src/main/c
17+
JAVA_CHECKSTYLE, # For pollux/lib/anoncreds/src/main/java
1818
]
1919
DISABLE_ERRORS_LINTERS: [
20-
KOTLIN_KTLINT,
21-
PROTOBUF_PROTOLINT,
22-
OPENAPI_SPECTRAL,
23-
MARKDOWN_MARKDOWN_LINK_CHECK,
20+
KOTLIN_KTLINT,
21+
PROTOBUF_PROTOLINT,
22+
OPENAPI_SPECTRAL,
23+
MARKDOWN_MARKDOWN_LINK_CHECK,
24+
REPOSITORY_TRUFFLEHOG,
25+
REPOSITORY_KICS,
2426
]
2527

2628
DISABLE: [COPYPASTE, SPELL, CREDENTIALS]
@@ -37,13 +39,13 @@ BASH_SHELLCHECK_DISABLE_ERRORS: true
3739
# that could lead to new files in workspace created
3840
# with CLRF instead of CL due docker/python/git chain
3941
PRE_COMMANDS:
40-
- command: git config --global core.autocrlf input
41-
cwd: "workspace"
42+
- command: git config --global core.autocrlf input
43+
cwd: "workspace"
4244

4345
# Linter customisation
4446
MARKDOWN_MARKDOWN_LINK_CHECK_FILTER_REGEX_EXCLUDE: "CHANGELOG.md"
4547
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: "CHANGELOG.md"
46-
SQL_SQL_LINT_ARGUMENTS: -d postgres --ignore-errors=postgres-invalid-alter-option
48+
SQL_SQL_LINT_ARGUMENTS: -d postgres --ignore-errors=postgres-invalid-alter-option,postgres-invalid-create-option
4749
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: "infrastructure/charts/node/*"
4850
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: "infrastructure/charts/node/*"
4951
YAML_V8R_FILTER_REGEX_EXCLUDE: "infrastructure/charts/node/*"

node/src/main/resources/db/migration/V10__atala_object_tx_submission.sql

Lines changed: 0 additions & 15 deletions
This file was deleted.

node/src/main/resources/db/migration/V11__revoked_credentials.sql

Lines changed: 0 additions & 16 deletions
This file was deleted.

node/src/main/resources/db/migration/V12__drop_atalaobjects_blockhash.sql

Lines changed: 0 additions & 11 deletions
This file was deleted.

node/src/main/resources/db/migration/V13__add_ledger_data_to_protocol_events.sql

Lines changed: 0 additions & 102 deletions
This file was deleted.

node/src/main/resources/db/migration/V14__atala_object_tx_submissions_index.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.

node/src/main/resources/db/migration/V15__delete_legacy_credentials_table.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.

node/src/main/resources/db/migration/V16__drop_blocks_table.sql

Lines changed: 0 additions & 4 deletions
This file was deleted.

node/src/main/resources/db/migration/V17__add_operation_statuses.sql

Lines changed: 0 additions & 16 deletions
This file was deleted.

node/src/main/resources/db/migration/V18__alter_public_key_table.sql

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)