diff --git a/migrations/1789571455939_remove_good_reading_honor_type/down.sql b/migrations/1789571455939_remove_good_reading_honor_type/down.sql new file mode 100644 index 0000000..ef358a9 --- /dev/null +++ b/migrations/1789571455939_remove_good_reading_honor_type/down.sql @@ -0,0 +1,3 @@ +INSERT INTO public.honor_type (type_name) +VALUES ('好读书奖') +ON CONFLICT (type_name) DO NOTHING; diff --git a/migrations/1789571455939_remove_good_reading_honor_type/up.sql b/migrations/1789571455939_remove_good_reading_honor_type/up.sql new file mode 100644 index 0000000..a8e3588 --- /dev/null +++ b/migrations/1789571455939_remove_good_reading_honor_type/up.sql @@ -0,0 +1,2 @@ +DELETE FROM public.honor_type +WHERE type_name = '好读书奖';