jenkins-bot has submitted this change and it was merged.

Change subject: Change round-trip test db page prefix to 24 chars
......................................................................


Change round-trip test db page prefix to 24 chars

Change-Id: I0761d0da8e1cfa57e0bdc16cc6087d290f68e0af
---
M js/tests/README
A js/tests/server/sql/002_alter_pages_prefix_width_24.sql
M js/tests/server/sql/create_everything.mysql
3 files changed, 6 insertions(+), 5 deletions(-)

Approvals:
  GWicke: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/js/tests/README b/js/tests/README
index 197b0a7..08c7467 100644
--- a/js/tests/README
+++ b/js/tests/README
@@ -36,14 +36,14 @@
 To populate the database with initial data, run
 
        $ mysql [connection parameters] < sql/create_everything.mysql
-       $ node importJson --prefix=en titles.example.en.json
-       $ node importJson --prefix=es titles.example.es.json
+       $ node importJson --prefix=enwiki titles.example.en.json
+       $ node importJson --prefix=eswiki titles.example.es.json
 
 The script importJson.js takes the same connection parameters as server.js. To
 test the handling of non-existent articles, you might want to also do:
 
-       $ node importJson --prefix=en titles.example.bogus.json
-       $ node importJson --prefix=es titles.example.bogus.json
+       $ node importJson --prefix=enwiki titles.example.bogus.json
+       $ node importJson --prefix=eswiki titles.example.bogus.json
 
 Now start the server:
 
diff --git a/js/tests/server/sql/002_alter_pages_prefix_width_24.sql 
b/js/tests/server/sql/002_alter_pages_prefix_width_24.sql
new file mode 100644
index 0000000..2885c80
--- /dev/null
+++ b/js/tests/server/sql/002_alter_pages_prefix_width_24.sql
@@ -0,0 +1 @@
+ALTER TABLE pages CHANGE prefix prefix CHAR( 24 ) NOT NULL DEFAULT 'enwiki';
\ No newline at end of file
diff --git a/js/tests/server/sql/create_everything.mysql 
b/js/tests/server/sql/create_everything.mysql
index 89d0645..2a831d2 100644
--- a/js/tests/server/sql/create_everything.mysql
+++ b/js/tests/server/sql/create_everything.mysql
@@ -8,7 +8,7 @@
 CREATE TABLE pages (
        id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
        title TEXT NOT NULL,
-       prefix CHAR( 2 ) NOT NULL DEFAULT 'en',
+       prefix CHAR( 24 ) NOT NULL DEFAULT 'enwiki',
        num_fetch_errors INTEGER NOT NULL DEFAULT 0,
        latest_score INTEGER NOT NULL DEFAULT 0,
        latest_stat INTEGER NULL,

-- 
To view, visit https://gerrit.wikimedia.org/r/95565
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0761d0da8e1cfa57e0bdc16cc6087d290f68e0af
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Marcoil <marc...@wikimedia.org>
Gerrit-Reviewer: GWicke <gwi...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to