v0.21.2 Wipe URL table for now
This commit is contained in:
parent
c8677aaf0f
commit
1a07b66620
@ -1,5 +1,5 @@
|
|||||||
# gossamer threads migration-import code
|
# gossamer threads migration-import code
|
||||||
# v0.21.1
|
# v0.21.2
|
||||||
|
|
||||||
require 'mysql2'
|
require 'mysql2'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
@ -59,9 +59,12 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
real_name TEXT
|
real_name TEXT
|
||||||
);
|
);
|
||||||
SQL
|
SQL
|
||||||
# @db.execute <<-SQL
|
|
||||||
# DROP TABLE IF EXISTS url_map;
|
# ONLY when we need to clear the url_map e.g. if reimporting topics-posts from scratch
|
||||||
# SQL
|
@db.execute <<-SQL
|
||||||
|
DROP TABLE IF EXISTS url_map;
|
||||||
|
SQL
|
||||||
|
|
||||||
@db.execute <<-SQL
|
@db.execute <<-SQL
|
||||||
CREATE TABLE IF NOT EXISTS url_map (
|
CREATE TABLE IF NOT EXISTS url_map (
|
||||||
old_post_id INTEGER PRIMARY KEY,
|
old_post_id INTEGER PRIMARY KEY,
|
||||||
|
Loading…
Reference in New Issue
Block a user