Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
bbd62363
Commit
bbd62363
authored
Dec 29, 2025
by
yangjianbo
Browse files
fix(数据库): 补充默认分组种子迁移
确保安装时至少存在一个默认分组
parent
cc4da2ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/migrations/008_seed_default_group.sql
View file @
bbd62363
-- 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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment