mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 09:02:41 +00:00
Tweak
This commit is contained in:
parent
fc2428713a
commit
3f7df467e6
2 changed files with 2 additions and 3 deletions
|
@ -10,9 +10,7 @@ create temp table arsse_articles_map(
|
||||||
subscription int not null,
|
subscription int not null,
|
||||||
id integer primary key autoincrement
|
id integer primary key autoincrement
|
||||||
);
|
);
|
||||||
insert into arsse_articles_map(article, subscription) values(1, 1);
|
replace into temp.sqlite_sequence(name,seq) select 'arsse_articles_map', max(id) from arsse_articles;
|
||||||
delete from arsse_articles_map;
|
|
||||||
update temp.sqlite_sequence set seq = (select max(id) from arsse_articles) where name = 'arsse_articles_map';
|
|
||||||
insert into arsse_articles_map(article, subscription)
|
insert into arsse_articles_map(article, subscription)
|
||||||
select
|
select
|
||||||
a.id as article,
|
a.id as article,
|
||||||
|
|
|
@ -130,6 +130,7 @@ abstract class BaseUpdate extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
$this->drv->schemaUpdate(-1, $this->base);
|
$this->drv->schemaUpdate(-1, $this->base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @depends testPerformActualUpdate */
|
||||||
public function testPerformMaintenance(): void {
|
public function testPerformMaintenance(): void {
|
||||||
$this->drv->schemaUpdate(Database::SCHEMA_VERSION);
|
$this->drv->schemaUpdate(Database::SCHEMA_VERSION);
|
||||||
$this->assertTrue($this->drv->maintenance());
|
$this->assertTrue($this->drv->maintenance());
|
||||||
|
|
Loading…
Reference in a new issue