mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-06 07:57:04 +08:00
feat: add db changes in readme (#94)
This commit is contained in:
@@ -97,6 +97,8 @@ git clone https://github.com/dreamhunter2333/cloudflare_temp_email.git
|
|||||||
# 创建 D1 并执行 schema.sql
|
# 创建 D1 并执行 schema.sql
|
||||||
wrangler d1 create dev
|
wrangler d1 create dev
|
||||||
wrangler d1 execute dev --file=db/schema.sql
|
wrangler d1 execute dev --file=db/schema.sql
|
||||||
|
# schema 更新,如果你在此日期之前初始化过数据库,可以执行此命令更新
|
||||||
|
wrangler d1 execute dev --file=db/2024-01-13-path.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
创建完成后,我们在 cloudflare 的控制台可以看到 D1 数据库
|
创建完成后,我们在 cloudflare 的控制台可以看到 D1 数据库
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ This is a temporary email service that uses Cloudflare Workers to create a tempo
|
|||||||
# create a database, and copy the output to wrangler.toml in the next step
|
# create a database, and copy the output to wrangler.toml in the next step
|
||||||
wrangler d1 create dev
|
wrangler d1 create dev
|
||||||
wrangler d1 execute dev --file=db/schema.sql
|
wrangler d1 execute dev --file=db/schema.sql
|
||||||
|
# schema update, if you have initialized the database before this date, you can execute this command to update
|
||||||
|
wrangler d1 execute dev --file=db/2024-01-13-path.sql
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user