Skip to content

Commit 46be810

Browse files
committed
feat: add basic addition function and corresponding tests
- Implemented an `add` function in `main.ts` that takes two numbers and returns their sum. - Created a test suite in `main_test.ts` to verify the functionality of the `add` function using Deno's testing framework.
1 parent 8107cf0 commit 46be810

File tree

15 files changed

+1227
-964
lines changed

15 files changed

+1227
-964
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ CREATE TABLE "users" (
116116
"name" varchar NOT NULL,
117117
"username" varchar NOT NULL,
118118
"email" varchar,
119-
"profile_photo" varchar,
119+
"profile_photo_url" varchar,
120+
"profile_photo" json,
120121
"education" varchar,
121122
"designation" varchar,
122123
"bio" varchar,

migrations/0001_wakeful_captain_stacy.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

migrations/meta/0000_snapshot.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "ac9572ba-b268-46e2-8276-3fccefb6a2fc",
2+
"id": "5197c085-a8e5-4f28-a7eb-cb01556496ff",
33
"prevId": "00000000-0000-0000-0000-000000000000",
44
"version": "7",
55
"dialect": "postgresql",
@@ -850,9 +850,15 @@
850850
"primaryKey": false,
851851
"notNull": false
852852
},
853+
"profile_photo_url": {
854+
"name": "profile_photo_url",
855+
"type": "varchar",
856+
"primaryKey": false,
857+
"notNull": false
858+
},
853859
"profile_photo": {
854860
"name": "profile_photo",
855-
"type": "varchar",
861+
"type": "json",
856862
"primaryKey": false,
857863
"notNull": false
858864
},

0 commit comments

Comments
 (0)