chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline. Made-with: Cursor
This commit is contained in:
@@ -0,0 +1 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
@@ -0,0 +1,18 @@
|
||||
-- Your SQL goes here
|
||||
|
||||
alter table kecheng
|
||||
rename column group_id to kecheng_teacher_id;
|
||||
|
||||
alter table kecheng
|
||||
alter column kecheng_teacher_id set not null;
|
||||
|
||||
alter table kecheng
|
||||
drop column teacher_id;
|
||||
|
||||
alter table kecheng
|
||||
rename to kecheng_student;
|
||||
|
||||
alter table kecheng_student
|
||||
add constraint kecheng_student_kecheng_teacher_id_fk
|
||||
foreign key (kecheng_teacher_id) references kecheng_teacher;
|
||||
|
||||
Reference in New Issue
Block a user