DB 마이그레이션 스크립트 재생성

This commit is contained in:
static
2025-01-13 02:54:28 +09:00
parent 8bb4d70fa5
commit 68a764bf28
4 changed files with 13 additions and 5 deletions

View File

@@ -157,7 +157,8 @@ CREATE TABLE `session_upgrade_challenge` (
CREATE TABLE `user` ( CREATE TABLE `user` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`email` text NOT NULL, `email` text NOT NULL,
`password` text NOT NULL `password` text NOT NULL,
`nickname` text NOT NULL
); );
--> statement-breakpoint --> statement-breakpoint
CREATE UNIQUE INDEX `client_encryption_public_key_unique` ON `client` (`encryption_public_key`);--> statement-breakpoint CREATE UNIQUE INDEX `client_encryption_public_key_unique` ON `client` (`encryption_public_key`);--> statement-breakpoint

View File

@@ -1,7 +1,7 @@
{ {
"version": "6", "version": "6",
"dialect": "sqlite", "dialect": "sqlite",
"id": "f2fbe45c-1f1d-4dd8-92ab-dd057c0e668b", "id": "928e5669-81cf-486c-9122-8ee64fc9f457",
"prevId": "00000000-0000-0000-0000-000000000000", "prevId": "00000000-0000-0000-0000-000000000000",
"tables": { "tables": {
"client": { "client": {
@@ -1252,6 +1252,13 @@
"primaryKey": false, "primaryKey": false,
"notNull": true, "notNull": true,
"autoincrement": false "autoincrement": false
},
"nickname": {
"name": "nickname",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
} }
}, },
"indexes": { "indexes": {

View File

@@ -5,8 +5,8 @@
{ {
"idx": 0, "idx": 0,
"version": "6", "version": "6",
"when": 1736696839327, "when": 1736704436996,
"tag": "0000_lush_black_bolt", "tag": "0000_unknown_stark_industries",
"breakpoints": true "breakpoints": true
} }
] ]

View File

@@ -1,7 +1,7 @@
{ {
"name": "arkvault", "name": "arkvault",
"private": true, "private": true,
"version": "0.1.0", "version": "0.2.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",