Skip to content

Commit 7a67ba5

Browse files
authored
Merge pull request #168 from ut-code/refactor
refactor: rename migration files
2 parents 443af99 + 5715bd2 commit 7a67ba5

6 files changed

Lines changed: 14 additions & 599 deletions

File tree

drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = findLocalD1Database();
55
if (!path) throw new Error("Local D1 database not found");
66

77
const localConfig = defineConfig({
8-
schema: "./app/lib/db/schema.ts",
8+
schema: "./app/db/schema.ts",
99
out: "./drizzle",
1010
dialect: "sqlite",
1111
dbCredentials: {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ CREATE TABLE `game_state` (
1313
--> statement-breakpoint
1414
CREATE TABLE `haiyama` (
1515
`id` text PRIMARY KEY NOT NULL,
16-
`tiles` text NOT NULL
16+
`tiles` text NOT NULL,
17+
`avg_agari_junme` real DEFAULT 0 NOT NULL
1718
);
1819
--> statement-breakpoint
1920
CREATE TABLE `kyoku` (

drizzle/0001_wet_star_brand.sql

Lines changed: 0 additions & 8 deletions
This file was deleted.

drizzle/meta/0000_snapshot.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": "6",
33
"dialect": "sqlite",
4-
"id": "25890843-f1f5-4768-a7d8-2e5aef7bdb59",
4+
"id": "92a7db71-e48e-4619-a676-370530e6e241",
55
"prevId": "00000000-0000-0000-0000-000000000000",
66
"tables": {
77
"game_state": {
@@ -104,6 +104,14 @@
104104
"primaryKey": false,
105105
"notNull": true,
106106
"autoincrement": false
107+
},
108+
"avg_agari_junme": {
109+
"name": "avg_agari_junme",
110+
"type": "real",
111+
"primaryKey": false,
112+
"notNull": true,
113+
"autoincrement": false,
114+
"default": 0
107115
}
108116
},
109117
"indexes": {},

0 commit comments

Comments
 (0)