v0.36.8 Move SQLite3 DB to persistent storage /bitnami/discourse/sqlite
This commit is contained in:
parent
1ae297ba74
commit
ab0449e2ef
@ -1,7 +1,7 @@
|
|||||||
# Federated Computer, Inc.
|
# Federated Computer, Inc.
|
||||||
# David Sainty <saint@federated.computer> 2024 A.D.
|
# David Sainty <saint@federated.computer> 2024 A.D.
|
||||||
# Gossamer Threads to Discourse -- Migration-Import Script
|
# Gossamer Threads to Discourse -- Migration-Import Script
|
||||||
# v0.36.7 Tweak for re-running as of 20240816
|
# v0.36.8 Move SQLite3 DB to persistent storage /bitnami/discourse/sqlite
|
||||||
|
|
||||||
require 'mysql2'
|
require 'mysql2'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
@ -40,7 +40,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def initialize_sqlite_id_name_url_db
|
def initialize_sqlite_id_name_url_db
|
||||||
@db = SQLite3::Database.new 'id_name_url_map.db'
|
@db = SQLite3::Database.new '/bitnami/discourse/sqlite/id_name_url_map.db'
|
||||||
@db.execute <<-SQL
|
@db.execute <<-SQL
|
||||||
CREATE TABLE IF NOT EXISTS user_id_map (
|
CREATE TABLE IF NOT EXISTS user_id_map (
|
||||||
old_user_id INTEGER PRIMARY KEY,
|
old_user_id INTEGER PRIMARY KEY,
|
||||||
|
Loading…
Reference in New Issue
Block a user