-
Notifications
You must be signed in to change notification settings - Fork 0
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
1ee0238
commit 6b3a114
Showing
28 changed files
with
669 additions
and
47 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
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,16 @@ | ||
CREATE TABLE `posts` ( | ||
`content` text, | ||
`description` text, | ||
`published` text NOT NULL, | ||
`slug` text PRIMARY KEY NOT NULL, | ||
`title` text NOT NULL, | ||
`type` text NOT NULL, | ||
`updated` text | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE `tags` ( | ||
`name` text NOT NULL, | ||
`post_slug` text NOT NULL, | ||
PRIMARY KEY(`name`, `post_slug`), | ||
FOREIGN KEY (`post_slug`) REFERENCES `posts`(`slug`) ON UPDATE no action ON DELETE no action | ||
); |
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,273 @@ | ||
{ | ||
"version": "6", | ||
"dialect": "sqlite", | ||
"id": "33e6eabe-c792-4d57-bd4d-906a2df54df2", | ||
"prevId": "d0532e55-b97a-4c4f-b350-50a3301e31bb", | ||
"tables": { | ||
"components": { | ||
"name": "components", | ||
"columns": { | ||
"added": { | ||
"name": "added", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"brand": { | ||
"name": "brand", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"distance": { | ||
"name": "distance", | ||
"type": "real", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"gear_id": { | ||
"name": "gear_id", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"string": { | ||
"name": "string", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"removed": { | ||
"name": "removed", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": { | ||
"gear_id_idx": { | ||
"name": "gear_id_idx", | ||
"columns": [ | ||
"gear_id" | ||
], | ||
"isUnique": false | ||
} | ||
}, | ||
"foreignKeys": { | ||
"components_gear_id_gear_id_fk": { | ||
"name": "components_gear_id_gear_id_fk", | ||
"tableFrom": "components", | ||
"tableTo": "gear", | ||
"columnsFrom": [ | ||
"gear_id" | ||
], | ||
"columnsTo": [ | ||
"id" | ||
], | ||
"onDelete": "no action", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"gear": { | ||
"name": "gear", | ||
"columns": { | ||
"brand_name": { | ||
"name": "brand_name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"description": { | ||
"name": "description", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"frame_type": { | ||
"name": "frame_type", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"model_name": { | ||
"name": "model_name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"name": { | ||
"name": "name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"slug": { | ||
"name": "slug", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": { | ||
"slug_idx": { | ||
"name": "slug_idx", | ||
"columns": [ | ||
"slug" | ||
], | ||
"isUnique": false | ||
} | ||
}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"posts": { | ||
"name": "posts", | ||
"columns": { | ||
"content": { | ||
"name": "content", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"description": { | ||
"name": "description", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"published": { | ||
"name": "published", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"slug": { | ||
"name": "slug", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"title": { | ||
"name": "title", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"updated": { | ||
"name": "updated", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"tags": { | ||
"name": "tags", | ||
"columns": { | ||
"name": { | ||
"name": "name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"post_slug": { | ||
"name": "post_slug", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"tags_post_slug_posts_slug_fk": { | ||
"name": "tags_post_slug_posts_slug_fk", | ||
"tableFrom": "tags", | ||
"tableTo": "posts", | ||
"columnsFrom": [ | ||
"post_slug" | ||
], | ||
"columnsTo": [ | ||
"slug" | ||
], | ||
"onDelete": "no action", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": { | ||
"tags_name_post_slug_pk": { | ||
"columns": [ | ||
"name", | ||
"post_slug" | ||
], | ||
"name": "tags_name_post_slug_pk" | ||
} | ||
}, | ||
"uniqueConstraints": {} | ||
} | ||
}, | ||
"enums": {}, | ||
"_meta": { | ||
"schemas": {}, | ||
"tables": {}, | ||
"columns": {} | ||
}, | ||
"internal": { | ||
"indexes": {} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
GEAR=$CONFIG/gear/* | ||
for gear in $GEAR | ||
do | ||
filename=`echo $gear | cut -c ${#GEAR}-` | ||
npx wrangler r2 object put strava/gear/$filename --file $gear --local | ||
done | ||
POSTS=$LOCAL/src/content/posts/* | ||
for post in $POSTS | ||
do | ||
filename=`echo $post | cut -c ${#POSTS}-` | ||
npx wrangler r2 object put blog/posts/$filename --file $post --local | ||
done |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { defineCollection } from "astro:content" | ||
import { PostSchema } from "@schemas" | ||
const PostCollection = defineCollection({ | ||
type: "content", | ||
schema: PostSchema, | ||
}) | ||
export const collections = { | ||
"posts": PostCollection, | ||
} | ||
// import { defineCollection } from "astro:content" | ||
// import { PostSchema } from "@schemas" | ||
// const PostCollection = defineCollection({ | ||
// type: "content", | ||
// schema: PostSchema, | ||
// }) | ||
// export const collections = { | ||
// "posts": PostCollection, | ||
// } |
Oops, something went wrong.