This commit is contained in:
11
migrations/000205_create_log_archive_run.down.sql
Normal file
11
migrations/000205_create_log_archive_run.down.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
LOCK TABLE tb_log_archive_run IN ACCESS EXCLUSIVE MODE;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF EXISTS (SELECT 1 FROM tb_log_archive_run LIMIT 1) THEN
|
||||
RAISE EXCEPTION 'tb_log_archive_run 已存在归档运行事实,禁止回滚迁移';
|
||||
END IF;
|
||||
END;
|
||||
$$;
|
||||
|
||||
DROP TABLE tb_log_archive_run;
|
||||
Reference in New Issue
Block a user