Files
ok_r/supabase/init_rpc.sql
karlcarlo 095f02700f feat: 添加数据库迁移脚本和 Supabase 工具配置
添加迁移脚本以支持数据库版本管理,配置 pnpm workspace 仅构建 supabase 依赖
新增用户登录字段和任务帮助请求功能,禁用 tasks 和 task_steps 表的 RLS
更新环境变量示例以支持自托管 Supabase 实例
2026-01-29 02:41:10 +08:00

10 lines
377 B
PL/PgSQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 这是一个初始化脚本,用于在 Supabase 中启用 SQL 执行功能。
-- 请复制以下内容并在 Supabase Dashboard 的 SQL 编辑器中运行一次。
-- 运行后,scripts/migrate.js 脚本才能通过 RPC 调用执行迁移。
create or replace function exec_sql(sql text) returns void as $$
begin
execute sql;
end;
$$ language plpgsql security definer;