Skip to content

Commit

Permalink
- Patch app/models/assignments.rb - has ::int4[] instead of ::int8[] …
Browse files Browse the repository at this point in the history
…(32 bit int instead of 64 bit int)

Listed as issue here: instructure/canvas-lms#1238
  • Loading branch information
frankyrumple committed Feb 15, 2018
1 parent 2132065 commit b291201
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker_build_files/ope-canvas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ RUN COMPILE_ASSETS_NPM_INSTALL=0 bundle exec rake canvas:compile_assets
USER docker


LABEL rebuild=33
LABEL rebuild=34

COPY amazon_s3.yml config/amazon_s3.yml
COPY delayed_jobs.yml config/delayed_jobs.yml
Expand Down
4 changes: 4 additions & 0 deletions docker_build_files/ope-canvas/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ cp config/security.yml.tmpl config/security.yml
sed -i -- "s/<CANVAS_SECRET>/$CANVAS_SECRET/g" config/security.yml


# Fix ::int4[] instead of ::int8[] in app/models/assignment.rb (line 2477, issue #1238)
sed -i -- "s/\:\:int4\[\]/\:\:int8\[\]/g" app/models/assignment.rb


# Javascript - uses float to store ints, so max is 53 bits instead of 64?
# 9_223_372_036_854_775_807 - Normal Max 64 bit int - for every language but JScript
# 0_009_007_199_254_740_991 - Max safe int for jscript (jscript, you suck in so many ways)
Expand Down

0 comments on commit b291201

Please sign in to comment.