mirror of
https://github.com/Fluorohydride/ygopro.git
synced 2026-10-16 21:13:26 +08:00
Delete resource/migrate.sql (#3070)
the new cdb schema is being discussed in https://github.com/Fluorohydride/ygopro/pull/3044 and this *middle* format is nowhere used. This file may be reintroduced in that PR.
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
--step 1: add new column
|
|
||||||
ALTER TABLE datas ADD COLUMN rule_code INTEGER DEFAULT 0;
|
|
||||||
|
|
||||||
--step 2: update "treated as X" cards
|
|
||||||
UPDATE datas
|
|
||||||
SET rule_code = alias, alias = 0
|
|
||||||
WHERE id IN (
|
|
||||||
SELECT id
|
|
||||||
FROM datas
|
|
||||||
WHERE NOT (type & 0x4000) AND alias != 0 AND abs(id - alias) >= 20
|
|
||||||
);
|
|
||||||
|
|
||||||
--step 3: update special cards
|
|
||||||
UPDATE datas
|
|
||||||
SET rule_code = alias, alias = 0
|
|
||||||
WHERE id = 5405695;
|
|
||||||
|
|
||||||
UPDATE datas
|
|
||||||
SET rule_code = 13331639
|
|
||||||
WHERE alias = 6218704;
|
|
||||||
Reference in New Issue
Block a user