Skip to content

Commit facd9de

Browse files
committed
Update the script
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent 101070c commit facd9de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

migrations/versions/264cf17e65e0_add_default_user.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ def upgrade() -> None:
2222
"""Upgrade schema."""
2323
op.execute(
2424
"""
25-
INSERT INTO users (uuid, username, email, avatar_url, meta, created_at, updated_at)
26-
VALUES ('00000000-0000-0000-0000-000000000001', 'neo', 'neo@hiverge.ai', NULL, NULL, NOW(), NOW())
25+
INSERT INTO users (uuid, username, email, avatar_url, meta, created_at, updated_at, is_del)
26+
VALUES ('00000000-0000-0000-0000-000000000001', 'neo', 'neo@hiverge.ai', NULL, NULL, NOW(), NOW(), 0)
2727
ON CONFLICT (uuid) DO NOTHING;
2828
"""
2929
)
3030
op.execute(
3131
"""
32-
INSERT INTO teams (uuid, name, description, meta, created_at, updated_at)
33-
VALUES ('00000000-0000-0000-0000-000000000001', 'Default Team', 'This is the default team.', NULL, NOW(), NOW())
32+
INSERT INTO teams (uuid, name, description, meta, created_at, updated_at, is_del)
33+
VALUES ('00000000-0000-0000-0000-000000000001', 'Default Team', 'This is the default team.', NULL, NOW(), NOW(), 0)
3434
ON CONFLICT (uuid) DO NOTHING;
3535
"""
3636
)

0 commit comments

Comments
 (0)