From e7e8b0f2f9bf969f7cbd5bf99cab0b64ae172b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Fri, 27 Sep 2024 18:45:18 +0900 Subject: [PATCH] cfmgrv4 init...1 --- app/Database/update.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Database/update.txt b/app/Database/update.txt index c5d3098..4b43f91 100644 --- a/app/Database/update.txt +++ b/app/Database/update.txt @@ -1,22 +1,22 @@ 1. 필드추가 alter table cloudflareaccount add column id varchar(30) not null after auth_uid; alter table cloudflareaccount add column authkey varchar(255) not null after id; -alter table cloudflareaccount add column oldkey varchar(255) null after apikey; +alter table cloudflareaccount add column oldkey varchar(255) null after authkey; 2. 내용복사 update cloudflareaccount join cloudflareauth on cloudflareaccount.auth_uid = cloudflareauth.uid set cloudflareaccount.id=cloudflareauth.id, -cloudflareaccount.apikey=cloudflareauth.authkey, +cloudflareaccount.authkey=cloudflareauth.authkey, cloudflareaccount.oldkey=cloudflareauth.oldkey 3. foreign key 삭제 , index key 삭제 -show table cloudflareaccount; +show create table cloudflareaccount; ALTER TABLE cloudflareaccount DROP FOREIGN KEY cloudflareaccount_ibfk_1; ALTER TABLE cloudflareaccount DROP KEY cloudflareaccount_ibfk_1; 4. auth_uid column 삭제 -show table cloudflareaccount; +show create table cloudflareaccount; ALTER TABLE cloudflareaccount DROP column auth_uid; 5. id unique key 추가