-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af7afc0
commit a405722
Showing
21 changed files
with
512 additions
and
74 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
7 changes: 5 additions & 2 deletions
7
apps/api-delegations/src/db/actions/delegations/get-delegations-db.ts
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
7 changes: 2 additions & 5 deletions
7
apps/api-delegations/src/db/actions/delegations/insert-delegation-db.ts
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
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 @@ | ||
ALTER TABLE "caveats" RENAME COLUMN "enforcerType" TO "type"; |
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 @@ | ||
ALTER TABLE "delegations" DROP COLUMN IF EXISTS "verifyingContract"; |
156 changes: 156 additions & 0 deletions
156
apps/api-delegations/src/db/migrations/meta/0004_snapshot.json
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,156 @@ | ||
{ | ||
"id": "82e90e7e-c11d-4bc1-a2d9-d424468eb207", | ||
"prevId": "66aff067-9977-4af1-b07f-44aa4df06804", | ||
"version": "7", | ||
"dialect": "postgresql", | ||
"tables": { | ||
"public.caveats": { | ||
"name": "caveats", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "serial", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "varchar(256)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"enforcer": { | ||
"name": "enforcer", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"terms": { | ||
"name": "terms", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"args": { | ||
"name": "args", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delegationHash": { | ||
"name": "delegationHash", | ||
"type": "varchar(66)", | ||
"primaryKey": false, | ||
"notNull": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"caveats_delegationHash_delegations_hash_fk": { | ||
"name": "caveats_delegationHash_delegations_hash_fk", | ||
"tableFrom": "caveats", | ||
"tableTo": "delegations", | ||
"columnsFrom": [ | ||
"delegationHash" | ||
], | ||
"columnsTo": [ | ||
"hash" | ||
], | ||
"onDelete": "no action", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {}, | ||
"policies": {}, | ||
"checkConstraints": {}, | ||
"isRLSEnabled": false | ||
}, | ||
"public.delegations": { | ||
"name": "delegations", | ||
"schema": "", | ||
"columns": { | ||
"hash": { | ||
"name": "hash", | ||
"type": "varchar(66)", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"verifyingContract": { | ||
"name": "verifyingContract", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "varchar(256)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delegator": { | ||
"name": "delegator", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"chainId": { | ||
"name": "chainId", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delegate": { | ||
"name": "delegate", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"authority": { | ||
"name": "authority", | ||
"type": "varchar(66)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"salt": { | ||
"name": "salt", | ||
"type": "bigint", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"signature": { | ||
"name": "signature", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"isValid": { | ||
"name": "isValid", | ||
"type": "boolean", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {}, | ||
"policies": {}, | ||
"checkConstraints": {}, | ||
"isRLSEnabled": false | ||
} | ||
}, | ||
"enums": {}, | ||
"schemas": {}, | ||
"sequences": {}, | ||
"roles": {}, | ||
"policies": {}, | ||
"views": {}, | ||
"_meta": { | ||
"columns": {}, | ||
"schemas": {}, | ||
"tables": {} | ||
} | ||
} |
150 changes: 150 additions & 0 deletions
150
apps/api-delegations/src/db/migrations/meta/0005_snapshot.json
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,150 @@ | ||
{ | ||
"id": "1f0dc50b-abed-4990-b8a2-435e9ee80874", | ||
"prevId": "82e90e7e-c11d-4bc1-a2d9-d424468eb207", | ||
"version": "7", | ||
"dialect": "postgresql", | ||
"tables": { | ||
"public.caveats": { | ||
"name": "caveats", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "serial", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "varchar(256)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"enforcer": { | ||
"name": "enforcer", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"terms": { | ||
"name": "terms", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"args": { | ||
"name": "args", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delegationHash": { | ||
"name": "delegationHash", | ||
"type": "varchar(66)", | ||
"primaryKey": false, | ||
"notNull": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"caveats_delegationHash_delegations_hash_fk": { | ||
"name": "caveats_delegationHash_delegations_hash_fk", | ||
"tableFrom": "caveats", | ||
"tableTo": "delegations", | ||
"columnsFrom": [ | ||
"delegationHash" | ||
], | ||
"columnsTo": [ | ||
"hash" | ||
], | ||
"onDelete": "no action", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {}, | ||
"policies": {}, | ||
"checkConstraints": {}, | ||
"isRLSEnabled": false | ||
}, | ||
"public.delegations": { | ||
"name": "delegations", | ||
"schema": "", | ||
"columns": { | ||
"hash": { | ||
"name": "hash", | ||
"type": "varchar(66)", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "varchar(256)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delegator": { | ||
"name": "delegator", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"chainId": { | ||
"name": "chainId", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delegate": { | ||
"name": "delegate", | ||
"type": "varchar(42)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"authority": { | ||
"name": "authority", | ||
"type": "varchar(66)", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"salt": { | ||
"name": "salt", | ||
"type": "bigint", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"signature": { | ||
"name": "signature", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"isValid": { | ||
"name": "isValid", | ||
"type": "boolean", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {}, | ||
"policies": {}, | ||
"checkConstraints": {}, | ||
"isRLSEnabled": false | ||
} | ||
}, | ||
"enums": {}, | ||
"schemas": {}, | ||
"sequences": {}, | ||
"roles": {}, | ||
"policies": {}, | ||
"views": {}, | ||
"_meta": { | ||
"columns": {}, | ||
"schemas": {}, | ||
"tables": {} | ||
} | ||
} |
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
Oops, something went wrong.