mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-03 23:33:37 +08:00
@@ -261,11 +261,11 @@ func init() {
|
||||
// task.DefaultIsSuggested holds the default value on creation for the is_suggested field.
|
||||
task.DefaultIsSuggested = taskDescIsSuggested.Default.(bool)
|
||||
// taskDescCreatedAt is the schema descriptor for created_at field.
|
||||
taskDescCreatedAt := taskFields[14].Descriptor()
|
||||
taskDescCreatedAt := taskFields[17].Descriptor()
|
||||
// task.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
task.DefaultCreatedAt = taskDescCreatedAt.Default.(func() time.Time)
|
||||
// taskDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
taskDescUpdatedAt := taskFields[15].Descriptor()
|
||||
taskDescUpdatedAt := taskFields[18].Descriptor()
|
||||
// task.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
task.DefaultUpdatedAt = taskDescUpdatedAt.Default.(func() time.Time)
|
||||
// task.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
ALTER TABLE tasks ADD column is_suggested boolean default false;
|
||||
ALTER TABLE task_records ADD column code_lines int default 0;
|
||||
ALTER TABLE task_records ADD column code text;
|
||||
ALTER TABLE task_records ADD column code text;
|
||||
ALTER TABLE tasks ADD column source_code text;
|
||||
ALTER TABLE tasks ADD column cursor_position bigint;
|
||||
ALTER TABLE tasks ADD column user_input text;
|
||||
Reference in New Issue
Block a user