1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00
This commit is contained in:
J. King 2022-06-07 13:49:13 -04:00
parent fc2428713a
commit 3f7df467e6
2 changed files with 2 additions and 3 deletions

View file

@ -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,

View file

@ -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());