Commit bbd62363 authored by yangjianbo's avatar yangjianbo
Browse files

fix(数据库): 补充默认分组种子迁移

确保安装时至少存在一个默认分组
parent cc4da2ae
-- Seed a default group for fresh installs. -- Seed a default group for fresh installs.
INSERT INTO groups (name, description) INSERT INTO groups (name, description, created_at, updated_at)
SELECT 'default', 'Default group' SELECT 'default', 'Default group', NOW(), NOW()
WHERE NOT EXISTS (SELECT 1 FROM groups); WHERE NOT EXISTS (SELECT 1 FROM groups);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment