Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Improved comment on the automatic MLINK column adding that is done in db_open_repository(). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | mlink-improvements |
| Files: | files | file ages | folders |
| SHA1: |
c33c574e43e384f9b3dfd3f29a7d1ee9 |
| User & Date: | drh 2015-01-26 14:44:00.251 |
Context
|
2015-01-26
| ||
| 15:19 | Use the GR_MAX_RAIL macro to limit the number of parents for a node on a graph. On the /finfo page, ensure that a node is only marked "Added" if it has no parents. check-in: c1c50ced22 user: drh tags: mlink-improvements | |
| 14:44 | Improved comment on the automatic MLINK column adding that is done in db_open_repository(). check-in: c33c574e43 user: drh tags: mlink-improvements | |
| 14:25 | Remove a needless mlink.isaux test in the fileage computation. check-in: 3bb8873940 user: drh tags: mlink-improvements | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
}
g.zRepositoryName = mprintf("%s", zDbName);
db_open_or_attach(g.zRepositoryName, "repository", 0);
g.repositoryOpen = 1;
/* Cache "allow-symlinks" option, because we'll need it on every stat call */
g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
g.zAuxSchema = db_get("aux-schema","");
if( !db_table_has_column("repository","mlink","isaux") ){
db_begin_transaction();
db_multi_exec(
"ALTER TABLE %s.mlink ADD COLUMN pmid INTEGER DEFAULT 0;"
"ALTER TABLE %s.mlink ADD COLUMN isaux INTEGER DEFAULT 0;",
db_name("repository"), db_name("repository")
);
| > > > > > > | 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 |
}
g.zRepositoryName = mprintf("%s", zDbName);
db_open_or_attach(g.zRepositoryName, "repository", 0);
g.repositoryOpen = 1;
/* Cache "allow-symlinks" option, because we'll need it on every stat call */
g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
g.zAuxSchema = db_get("aux-schema","");
/* Verify that the MLINK table has the newer columns added by the
** 2015-01-24 schema change. Create them if necessary. This code
** can be removed in the future, once all users have upgraded to the
** 2015-01-24 schema.
*/
if( !db_table_has_column("repository","mlink","isaux") ){
db_begin_transaction();
db_multi_exec(
"ALTER TABLE %s.mlink ADD COLUMN pmid INTEGER DEFAULT 0;"
"ALTER TABLE %s.mlink ADD COLUMN isaux INTEGER DEFAULT 0;",
db_name("repository"), db_name("repository")
);
|
| ︙ | ︙ |