Skip to content

Commit 8f42c37

Browse files
committed
restore sqlite skips
1 parent 92c470b commit 8f42c37

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

examples/getting_started/tests/unmigrate.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ fn create_tag(connection: &Connection, name: &str) -> Tag {
1313
}
1414

1515
fn insert_data(connection: &Connection) {
16+
if connection.backend_name() == "sqlite" {
17+
// https://github.com/Electron100/butane/issues/226
18+
return;
19+
}
1620
let mut cats_blog = Blog::new("Cats");
1721
cats_blog.save(connection).unwrap();
1822

examples/getting_started_async/tests/unmigrate.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use butane::db::{BackendConnectionAsync, ConnectionAsync};
1+
use butane::db::ConnectionAsync;
22
use butane::migrations::Migrations;
33
use butane::DataObjectOpsAsync;
44
use butane_test_helper::*;
@@ -37,6 +37,10 @@ async fn migrate_and_unmigrate(mut connection: ConnectionAsync) {
3737
let base_dir = std::path::PathBuf::from(".butane");
3838
let migrations = butane_cli::get_migrations(&base_dir).unwrap();
3939

40+
if connection.backend_name() == "turso" {
41+
return;
42+
}
43+
4044
migrations.migrate_async(&mut connection).await.unwrap();
4145

4246
insert_data(&connection).await;

examples/newtype/tests/unmigrate.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ use newtype::models::{Blog, Post, Tags};
1515
)]
1616
async fn insert_data(connection: &Connection) {
1717
use butane::DataObjectOps;
18+
if connection.backend_name() == "sqlite" {
19+
// https://github.com/Electron100/butane/issues/226
20+
return;
21+
}
1822
// Turso: Skip due to table rename migration issue
1923
// See docs/turso-backend.md - Known Issues - Table Rename Migration
2024
if connection.backend_name() == "turso" || connection.backend_name() == "libsql" {

examples/reserved-words/tests/unmigrate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async fn insert_data(connection: &Connection) {
7373
RowidTest::get(connection, 5).await.unwrap();
7474
}
7575

76-
#[test_log::test(butane_test(async, nomigrate, pg))]
76+
#[test_log::test(butane_test(async, nomigrate))]
7777
async fn migrate_and_unmigrate_async(mut connection: ConnectionAsync) {
7878
// Migrate forward.
7979
let base_dir = std::path::PathBuf::from(".butane");

0 commit comments

Comments
 (0)