return Table("page", metadata,
Column("page_id", types.Integer, primary_key=True),
Column("page_namespace", types.Integer, nullable=False),
- Column("page_title", types.Unicode(255), nullable=False), # varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
+ Column("page_title", types.String(255, convert_unicode='force'), nullable=False),
Column("page_restrictions", types.String, nullable=False), # tinyblob NOT NULL
Column("page_is_redirect", types.Integer, nullable=False),
Column("page_is_new", types.Integer, nullable=False),
Column("page_random", types.Float, nullable=False),
- Column("page_touched", types.String(14, convert_unicode='force'), nullable=False), # binary(14) NOT NULL
+ Column("page_touched", types.String(14, convert_unicode='force'), nullable=False),
Column("page_latest", types.Integer, nullable=False),
Column("page_len", types.Integer, nullable=False),
Column("page_content_model", types.String(32, convert_unicode='force')),
Column("rev_text_id", types.Integer, nullable=False),
Column("rev_comment", types.String(convert_unicode='force'), nullable=False), # tinyblob NOT NULL
Column("rev_user", types.Integer, nullable=False),
- Column("rev_user_text", types.Unicode(255), nullable=False), # varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
- Column("rev_timestamp", types.String(14, convert_unicode='force'), nullable=False), # binary(14) NOT NULL
+ Column("rev_user_text", types.Unicode(255), nullable=False),
+ Column("rev_timestamp", types.String(14, convert_unicode='force'), nullable=False),
Column("rev_minor_edit", types.Integer, nullable=False),
Column("rev_deleted", types.Integer, nullable=False),
Column("rev_len", types.Integer, nullable=False),
"""
return Table("text", metadata,
Column("old_id", types.Integer, primary_key=True),
- Column("old_text", types.String(convert_unicode='force')), # mediumblob NOT NULL
- Column("old_flags", types.String(convert_unicode='force')), # tinyblob NOT NULL
+ Column("old_text", types.String(convert_unicode='force')),
+ Column("old_flags", types.String(convert_unicode='force')),
)
"""
return Table('user', metadata,
Column("user_id", types.Integer, primary_key=True),
- Column("user_name", types.Unicode(255), nullable=False), # varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
- Column("user_real_name", types.Unicode(255), nullable=False), # varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
- Column("user_password", types.UnicodeText, nullable=False), # tinyblob
+ Column("user_name", types.Unicode(255), nullable=False),
+ Column("user_real_name", types.Unicode(255), nullable=False),
+ Column("user_password", types.UnicodeText, nullable=False),
# "user_newpassword"
# "user_newpass_time"
- Column("user_email", types.Unicode, nullable=False), # tinytext NOT NULL
+ Column("user_email", types.Unicode, nullable=False),
# "user_touched"
# "user_token"
# "user_email_authenticated"
"""
return Table("categorylinks", metadata,
Column("cl_from", types.Integer, nullable=False, primary_key=True),
- Column("cl_to", types.Unicode(255), nullable=False, primary_key=True), # varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
- Column("cl_sortkey", types.String(convert_unicode='force'), nullable=False), # varbinary(230) NOT NULL
+ Column("cl_to", types.Unicode(255), nullable=False, primary_key=True),
+ Column("cl_sortkey", types.String(convert_unicode='force'), nullable=False),
Column("cl_timestamp", types.DateTime, nullable=False),
)
is raised. No other exception type should be raised under normal circumstances.
>>> from sqlalchemy.engine import create_engine
- >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
+ >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4')
>>> update_wrsledruncache(engine.connect())
"""
metadata = schema.MetaData()
is raised. No other exception type should be raised under normal circumstances.
>>> from sqlalchemy.engine import create_engine
- >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
+ >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4')
>>> update_wrinncache(engine.connect())
"""
metadata = schema.MetaData()
with the specified page_id. Use None for this parameter to update the whole table.
>>> from sqlalchemy.engine import create_engine
- >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
+ >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4')
>>> update_wrreportcache(engine.connect())
"""
metadata = schema.MetaData()
is raised. No other exception type should be raised under normal circumstances.
>>> from sqlalchemy.engine import create_engine
- >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
- >>> # or: engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1&passwd=XXXXX')
+ >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4')
+ >>> # or: engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4&passwd=XXXXX')
>>> update_wrmapcache(engine.connect())
"""
metadata = schema.MetaData()
No exceptions should be raised under normal circumstances.
>>> from sqlalchemy.engine import create_engine
- >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
- >>> # or: engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1&passwd=XXXXX')
+ >>> engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4')
+ >>> # or: engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4&passwd=XXXXX')
>>> update_wrregioncache(engine.connect())
"""
metadata = schema.MetaData()