Skip to content

Commit 500d773

Browse files
feat: 🔥🔥🔥 request path-params fature added
1 parent 45b6d5f commit 500d773

58 files changed

Lines changed: 7711 additions & 183 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ CREATE TABLE `params_table` (
217217
FOREIGN KEY (`requestOrFolderMetaId`) REFERENCES `request_or_folder_meta_table`(`id`) ON UPDATE no action ON DELETE cascade
218218
);
219219
--> statement-breakpoint
220+
CREATE TABLE `path_params_table` (
221+
`requestOrFolderMetaId` text PRIMARY KEY NOT NULL,
222+
`map` text DEFAULT '{}' NOT NULL,
223+
FOREIGN KEY (`requestOrFolderMetaId`) REFERENCES `request_or_folder_meta_table`(`id`) ON UPDATE no action ON DELETE cascade
224+
);
225+
--> statement-breakpoint
220226
CREATE TABLE `projects_table` (
221227
`id` text PRIMARY KEY NOT NULL,
222228
`name` text DEFAULT 'Project' NOT NULL
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `meta_show_column_table` ADD `pathParamsValue` integer DEFAULT true NOT NULL;--> statement-breakpoint
2+
ALTER TABLE `meta_show_column_table` ADD `patParamsDescription` integer DEFAULT false NOT NULL;

drizzle/0002_panoramic_vision.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `meta_show_column_table` RENAME COLUMN "patParamsDescription" TO "pathParamsDescription";

drizzle/0003_lying_war_machine.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `history_table` ADD `pathParams` text;

drizzle/meta/0000_snapshot.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": "6",
33
"dialect": "sqlite",
4-
"id": "c10c3faa-d938-44fd-8148-b1232e9709cd",
4+
"id": "bb93e34d-c899-42cd-9170-de1f38b4aa70",
55
"prevId": "00000000-0000-0000-0000-000000000000",
66
"tables": {
77
"active_code_snippit_type_table": {
@@ -1528,6 +1528,45 @@
15281528
"uniqueConstraints": {},
15291529
"checkConstraints": {}
15301530
},
1531+
"path_params_table": {
1532+
"name": "path_params_table",
1533+
"columns": {
1534+
"requestOrFolderMetaId": {
1535+
"name": "requestOrFolderMetaId",
1536+
"type": "text",
1537+
"primaryKey": true,
1538+
"notNull": true,
1539+
"autoincrement": false
1540+
},
1541+
"map": {
1542+
"name": "map",
1543+
"type": "text",
1544+
"primaryKey": false,
1545+
"notNull": true,
1546+
"autoincrement": false,
1547+
"default": "'{}'"
1548+
}
1549+
},
1550+
"indexes": {},
1551+
"foreignKeys": {
1552+
"path_params_table_requestOrFolderMetaId_request_or_folder_meta_table_id_fk": {
1553+
"name": "path_params_table_requestOrFolderMetaId_request_or_folder_meta_table_id_fk",
1554+
"tableFrom": "path_params_table",
1555+
"tableTo": "request_or_folder_meta_table",
1556+
"columnsFrom": [
1557+
"requestOrFolderMetaId"
1558+
],
1559+
"columnsTo": [
1560+
"id"
1561+
],
1562+
"onDelete": "cascade",
1563+
"onUpdate": "no action"
1564+
}
1565+
},
1566+
"compositePrimaryKeys": {},
1567+
"uniqueConstraints": {},
1568+
"checkConstraints": {}
1569+
},
15311570
"projects_table": {
15321571
"name": "projects_table",
15331572
"columns": {

0 commit comments

Comments
 (0)