mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:23:39 +08:00
16 lines
369 B
Ruby
16 lines
369 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Migrations::CLI::ImportCommand
|
||
|
def self.included(thor)
|
||
|
thor.class_eval do
|
||
|
desc "import", "Import a file"
|
||
|
def import
|
||
|
require "extralite"
|
||
|
|
||
|
puts "Importing into Discourse #{Discourse::VERSION::STRING}"
|
||
|
puts "Extralite SQLite version: #{Extralite.sqlite3_version}"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|