Skip to content

Commit

Permalink
Remove migrations
Browse files Browse the repository at this point in the history
These will be replaced by migrations in the web project
  • Loading branch information
Shane Kilkelly committed Jul 8, 2021
1 parent d65a7fe commit 04219b1
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 1,211 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ENV SHARELATEX_CONFIG /etc/sharelatex/settings.coffee
# -------------------------
ADD ${baseDir}/bin /var/www/sharelatex/bin
ADD ${baseDir}/doc /var/www/sharelatex/doc
ADD ${baseDir}/migrations /var/www/sharelatex/migrations
ADD ${baseDir}/tasks /var/www/sharelatex/tasks
ADD ${baseDir}/Gruntfile.coffee /var/www/sharelatex/Gruntfile.coffee
ADD ${baseDir}/package.json /var/www/sharelatex/package.json
Expand Down
16 changes: 0 additions & 16 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@ module.exports = (grunt) ->
options:
limit: SERVICES.length
logConcurrentOutput: true
coffee:
migrate:
expand: true,
flatten: false,
cwd: './',
src: ['./migrations/*.coffee'],
dest: './',
ext: '.js'
options:
bare:true

shell:
migrate:
command: "./node_modules/east/bin/east migrate --adapter east-mongo --url #{settings?.mongo?.url}"

availabletasks:
tasks:
Expand Down Expand Up @@ -115,8 +101,6 @@ module.exports = (grunt) ->
grunt.registerTask "check:make", "Check that make is installed", () ->
Helpers.checkMake @async()

grunt.registerTask 'migrate', "compile migrations and run them", ["coffee:migrate", 'shell:migrate']


Helpers =
installService: (service, callback = (error) ->) ->
Expand Down
8 changes: 0 additions & 8 deletions init_scripts/99_migrate.sh

This file was deleted.

109 changes: 0 additions & 109 deletions migrations/10_update_project_tokens.js

This file was deleted.

23 changes: 0 additions & 23 deletions migrations/11_set_project_image_name.js

This file was deleted.

24 changes: 0 additions & 24 deletions migrations/12_add_deletedFiles_indexes.js

This file was deleted.

28 changes: 0 additions & 28 deletions migrations/13_add_deleted_docs_index.js

This file was deleted.

164 changes: 0 additions & 164 deletions migrations/1_move_doc_lines_to_doc_collection.coffee

This file was deleted.

Loading

0 comments on commit 04219b1

Please sign in to comment.