Browse Source

Tweak

redup
J. King 2 years ago
parent
commit
3f7df467e6
  1. 4
      sql/SQLite3/7.sql
  2. 1
      tests/cases/Db/BaseUpdate.php

4
sql/SQLite3/7.sql

@ -10,9 +10,7 @@ create temp table arsse_articles_map(
subscription int not null,
id integer primary key autoincrement
);
insert into arsse_articles_map(article, subscription) values(1, 1);
delete from arsse_articles_map;
update temp.sqlite_sequence set seq = (select max(id) from arsse_articles) where name = 'arsse_articles_map';
replace into temp.sqlite_sequence(name,seq) select 'arsse_articles_map', max(id) from arsse_articles;
insert into arsse_articles_map(article, subscription)
select
a.id as article,

1
tests/cases/Db/BaseUpdate.php

@ -130,6 +130,7 @@ abstract class BaseUpdate extends \JKingWeb\Arsse\Test\AbstractTest {
$this->drv->schemaUpdate(-1, $this->base);
}
/** @depends testPerformActualUpdate */
public function testPerformMaintenance(): void {
$this->drv->schemaUpdate(Database::SCHEMA_VERSION);
$this->assertTrue($this->drv->maintenance());

Loading…
Cancel
Save