Description:
fix schema for source length to 1m
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r732:e07a92cfc790 - - 1 file changed: 1 inserted, 1 deleted
@@ -188,49 +188,49 | |||||
|
188 | add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", using: :btree |
|
188 | add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", using: :btree |
|
189 | add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree |
|
189 | add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree |
|
190 |
|
190 | ||
|
191 | create_table "sites", force: :cascade do |t| |
|
191 | create_table "sites", force: :cascade do |t| |
|
192 | t.string "name", limit: 255 |
|
192 | t.string "name", limit: 255 |
|
193 | t.boolean "started" |
|
193 | t.boolean "started" |
|
194 | t.datetime "start_time" |
|
194 | t.datetime "start_time" |
|
195 | t.datetime "created_at", null: false |
|
195 | t.datetime "created_at", null: false |
|
196 | t.datetime "updated_at", null: false |
|
196 | t.datetime "updated_at", null: false |
|
197 | t.integer "country_id", limit: 4 |
|
197 | t.integer "country_id", limit: 4 |
|
198 | t.string "password", limit: 255 |
|
198 | t.string "password", limit: 255 |
|
199 | end |
|
199 | end |
|
200 |
|
200 | ||
|
201 | create_table "submission_view_logs", force: :cascade do |t| |
|
201 | create_table "submission_view_logs", force: :cascade do |t| |
|
202 | t.integer "user_id", limit: 4 |
|
202 | t.integer "user_id", limit: 4 |
|
203 | t.integer "submission_id", limit: 4 |
|
203 | t.integer "submission_id", limit: 4 |
|
204 | t.datetime "created_at", null: false |
|
204 | t.datetime "created_at", null: false |
|
205 | t.datetime "updated_at", null: false |
|
205 | t.datetime "updated_at", null: false |
|
206 | end |
|
206 | end |
|
207 |
|
207 | ||
|
208 | create_table "submissions", force: :cascade do |t| |
|
208 | create_table "submissions", force: :cascade do |t| |
|
209 | t.integer "user_id", limit: 4 |
|
209 | t.integer "user_id", limit: 4 |
|
210 | t.integer "problem_id", limit: 4 |
|
210 | t.integer "problem_id", limit: 4 |
|
211 | t.integer "language_id", limit: 4 |
|
211 | t.integer "language_id", limit: 4 |
|
212 |
- t.text "source", limit: |
|
212 | + t.text "source", limit: 16777215 |
|
213 | t.binary "binary", limit: 65535 |
|
213 | t.binary "binary", limit: 65535 |
|
214 | t.datetime "submitted_at" |
|
214 | t.datetime "submitted_at" |
|
215 | t.datetime "compiled_at" |
|
215 | t.datetime "compiled_at" |
|
216 | t.text "compiler_message", limit: 65535 |
|
216 | t.text "compiler_message", limit: 65535 |
|
217 | t.datetime "graded_at" |
|
217 | t.datetime "graded_at" |
|
218 | t.integer "points", limit: 4 |
|
218 | t.integer "points", limit: 4 |
|
219 | t.text "grader_comment", limit: 65535 |
|
219 | t.text "grader_comment", limit: 65535 |
|
220 | t.integer "number", limit: 4 |
|
220 | t.integer "number", limit: 4 |
|
221 | t.string "source_filename", limit: 255 |
|
221 | t.string "source_filename", limit: 255 |
|
222 | t.float "max_runtime", limit: 24 |
|
222 | t.float "max_runtime", limit: 24 |
|
223 | t.integer "peak_memory", limit: 4 |
|
223 | t.integer "peak_memory", limit: 4 |
|
224 | t.integer "effective_code_length", limit: 4 |
|
224 | t.integer "effective_code_length", limit: 4 |
|
225 | t.string "ip_address", limit: 255 |
|
225 | t.string "ip_address", limit: 255 |
|
226 | end |
|
226 | end |
|
227 |
|
227 | ||
|
228 | add_index "submissions", ["user_id", "problem_id", "number"], name: "index_submissions_on_user_id_and_problem_id_and_number", unique: true, using: :btree |
|
228 | add_index "submissions", ["user_id", "problem_id", "number"], name: "index_submissions_on_user_id_and_problem_id_and_number", unique: true, using: :btree |
|
229 | add_index "submissions", ["user_id", "problem_id"], name: "index_submissions_on_user_id_and_problem_id", using: :btree |
|
229 | add_index "submissions", ["user_id", "problem_id"], name: "index_submissions_on_user_id_and_problem_id", using: :btree |
|
230 |
|
230 | ||
|
231 | create_table "tags", force: :cascade do |t| |
|
231 | create_table "tags", force: :cascade do |t| |
|
232 | t.string "name", limit: 255, null: false |
|
232 | t.string "name", limit: 255, null: false |
|
233 | t.text "description", limit: 65535 |
|
233 | t.text "description", limit: 65535 |
|
234 | t.boolean "public" |
|
234 | t.boolean "public" |
|
235 | t.datetime "created_at", null: false |
|
235 | t.datetime "created_at", null: false |
|
236 | t.datetime "updated_at", null: false |
|
236 | t.datetime "updated_at", null: false |
You need to be logged in to leave comments.
Login now