Sponsored Content
The Lounge What is on Your Mind? VBulletin 3.8 to Discourse on Docker Migration Test Take Two Post 303045097 by Neo on Wednesday 11th of March 2020 11:39:58 PM
Old 03-12-2020
VBulletin 3.8 to Discourse on Docker Migration Test Take Two

OK.

Like we all do, we learn a lot from tests, test migrations, and so forth.

Today, I started from scratch on test migration 2, armed with a lot more knowledge,

The main differences are as follows:
  • Installed discourse plugin ruby-bbcode-to-md before starting the install
  • Modified vbulletin.rb to account for many (not all) of our custom bbcode, like our icode and. mods tags
  • Modified vbulletin.rb to compensate for the fact that vb3 does not have a filedata table (like vb4)
  • Modified vbulletin.rb to compensate for an error in converting child forums to categories in discourse.
  • Moved all avatars to the vb3 database from the file system before dumping the DB.

Running again, from scratch, vbulletin_neo.rb:

Code:
root@localhost-app:/var/www/discourse# su discourse -c 'bundle exec ruby script/import_scripts/vbulletin_neo.rb'
root:@localhost wants vb3
Loading existing groups...
Loading existing users...
Loading existing categories...
Loading existing posts...
Loading existing topics...

importing groups..
       20 / 20 (100.0%)  [1542 items/min]  ]  
importing users
      860 / 138144 (  0.6%)  [123 items/min]  in]

Let's see how this goes.... Smilie

PS: As a side note, when migrating like this, do not use the same username for your Discourse admin account as your legacy forum username (the forum you are migrating from) because if you do, there will be an issue importing your posts under your legacy forum username into discourse. In this "round two", I did not make that mistake Smilie
 

7 More Discussions You Might Find Interesting

1. Web Development

Removing VBSEO for vbulletin – Reverting back to vbulletin URLs

Please note, this information was copied from vbseo.com, now showing a database error. This is posted for reference since vbSEO seems to be going out of business: If you ever need to uninstall vBSEO , you can use the following instructions. Make sure you carefully follow each step. Login... (37 Replies)
Discussion started by: Neo
37 Replies

2. Linux

Docker and pipework,ip with other subnet

Recently i found this for give to docker a "personal" ip ip addr del 10.1.1.133/24 dev eth0 ip link add link eth0 dev eth0m type macvlan mode bridge ip link set eth0m up ip addr add 10.1.1.133/24 dev eth0m route add default gw 10.1.1.1On container i did ... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

3. AIX

AIX - FC Switch migration, SAN Migration question!

I'm New to AIX / VIOS We're doing a FC switch cutover on an ibm device, connected via SAN. How do I tell if one path to my remote disk is lost? (aix lvm) How do I tell when my link is down on my HBA port? Appreciate your help, very much! (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

4. Shell Programming and Scripting

Problem in extracting yocto SDK for docker

Actually I was facing the following issue while building my Yocto SDK on Docker container sudo docker build --tag="akash/eclipse-che:6.5.0-1" --tag="akash/eclipse-che:latest" /home/akash/dockerimage.yocto.support/ Sending build context to Docker daemon 26.93MB Step 1/5 : FROM eclipse/cpp_gcc ... (3 Replies)
Discussion started by: Akash BHardwaj
3 Replies

5. UNIX for Beginners Questions & Answers

Can't pass a variable representing the output of lsb_release to a docker dontainer

I don't know why, but the rendering of my code mucks up the spacing and indentation, despite being correct in the original file. I'm having issues getting the following script to run (specifically the nested script at the end of the docker command near the end of the script; I think I'm not passing... (2 Replies)
Discussion started by: James Ray
2 Replies

6. Docker

Docker learning Phase-I

Hello All, I had recently learnt a bit of Docker(which provides containerization process). Here are some of my learning points from it. Let us start first with very basic question: What is Docker: Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Discussion started by: RavinderSingh13
7 Replies

7. What is on Your Mind?

Under Consideration: Migrate the Forums to Discourse

Dear All, After being active on the Node-RED forum for the last few weeks, I have been very impressed with Discourse, and my eyes have been opened. https://www.discourse.org/ but not the paid /hosted offering, but using the open distribution: https://github.com/discourse/discourse ... (52 Replies)
Discussion started by: Neo
52 Replies
PG_TAPGEN(1p)						User Contributed Perl Documentation					     PG_TAPGEN(1p)

Name
       pg_tapgen - Generate schema TAP tests from an existing database

Usage
	 pg_tapgen -d template1 > schema_test.sql

Description
       "pg_tapgen" is a command-line utility to generate pgTAP tests to validate a database schema by reading an existing database and generating
       the tests to match. Its use requires the installation of the DBI and DBD::Pg from CPAN or via a package distribution.

       Warning: These prerequisites are not validated by the pgTAP "Makefile", so you'll need to install them yourself. As a result, inclusion of
       this script in the pgTAP distribution is experimental. It may be moved to its own distribution in the future.

Options
	 -d --dbname DBNAME	   Database to which to connect.
	 -U --username USERNAME    Username with which to connect.
	 -h --host HOST 	   Host to which to connect.
	 -p --port PORT 	   Port to which to connect.
	 -v --verbose		   Display output of test scripts while running them.
	 -N --exclude-schema	   Exclude a schema from the generated tests.
	 -H --help		   Print a usage statement and exit.
	 -m --man		   Print the complete documentation and exit.
	 -V --version		   Print the version number and exit.

Options Details
       "-d"
       "--dbname"
	     pg_tapgen --dbname try
	     pg_tapgen -d postgres

	   The name of database to which to connect. Defaults to the value of the $PGDATABASE environment variable or to the system username.

       "-U"
       "--username"
	     pg_tapgen --username foo
	     pg_tapgen -U postgres

	   PostgreSQL user name to connect as. Defaults to the value of the $PGUSER environment variable or to the operating system name of the
	   user running the application.

       "-h"
       "--host"
	     pg_tapgen --host pg.example.com
	     pg_tapgen -h dev.local

	   Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory
	   for the Unix-domain socket. Defaults to the value of the $PGHOST environment variable or localhost.

       "-p"
       "--port"
	     pg_tapgen --port 1234
	     pg_tapgen -p 666

	   Specifies the TCP port or the local Unix-domain socket file extension on which the server is listening for connections. Defaults to the
	   value of the $PGPORT environment variable or, if not set, to the port specified at compile time, usually 5432.

       "-v"
       "--verbose"
	     pg_tapgen --verbose
	     pg_tapgen -v

	   Display standard output of test scripts while running them. This behavior can also be triggered by setting the $TEST_VERBOSE
	   environment variable to a true value.

       "-N"
       "--exclude-schema"
	     pg_tapgen --exclude-schema contrib
	     pg_tapgen -N testing -N temporary

	   Exclude a schema from the test generation. "pg_tapgen" always ignores "information_schema", as it is also ignored by pgTAP. But if
	   there are other schemas in the database that you don't need or want to test for in the database (because you run the tests on another
	   database without those schemas, for example), use "--exclude-schema" to omit them. May be used more than once to exclude more than one
	   schema.

       "-H"
       "--help"
	     pg_tapgen --help
	     pg_tapgen -H

	   Outputs a brief description of the options supported by "pg_tapgen" and exits.

       "-m"
       "--man"
	     pg_tapgen --man
	     pg_tapgen -m

	   Outputs this documentation and exits.

       "-V"
       "--version"
	     pg_tapgen --version
	     pg_tapgen -V

	   Outputs the program name and version and exits.

Author
       David E. Wheeler <dwheeler@cpan.org>

Copyright
       Copyright (c) 2009-2011 David E. Wheeler. Some Rights Reserved.

perl v5.14.2							    2012-06-10							     PG_TAPGEN(1p)
All times are GMT -4. The time now is 07:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy