mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:05:20 +08:00
d286c1d5a1
* Moves existing files around. All essential scripts are in `migrations/bin`, and non-essential scripts like benchmarks are in `migrations/scripts` * Dependabot configuration for migrations-tooling (disabled for now) * Updates test configuration for migrations-tooling * Shorter configuration for intermediate DB for now. We will add the rest table by table. * Adds a couple of benchmark scripts * RSpec setup especially for migrations-tooling and the first tests * Adds sorting/formatting to the `generate_schema` script
23 lines
435 B
Ruby
Executable File
23 lines
435 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require_relative "../lib/migrations"
|
|
|
|
module Migrations
|
|
load_rails_environment
|
|
|
|
load_gemfiles("common")
|
|
configure_zeitwerk("lib/common")
|
|
|
|
module Import
|
|
class << self
|
|
def run
|
|
puts "Importing into Discourse #{Discourse::VERSION::STRING}"
|
|
puts "Extralite SQLite version: #{Extralite.sqlite3_version}"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Migrations::Import.run
|