Upgrade sea-schema
This commit is contained in:
parent
75c1e2c1f7
commit
8f406575e7
@ -38,7 +38,7 @@ clap = { version = "4.3", features = ["env", "derive"], optional = true }
|
|||||||
dotenvy = { version = "0.15", default-features = false, optional = true }
|
dotenvy = { version = "0.15", default-features = false, optional = true }
|
||||||
async-std = { version = "1.9", default-features = false, features = ["attributes", "tokio1"], optional = true }
|
async-std = { version = "1.9", default-features = false, features = ["attributes", "tokio1"], optional = true }
|
||||||
sea-orm-codegen = { version = "=1.0.0-rc.1", path = "../sea-orm-codegen", default-features = false, optional = true }
|
sea-orm-codegen = { version = "=1.0.0-rc.1", path = "../sea-orm-codegen", default-features = false, optional = true }
|
||||||
sea-schema = { version = "0.15.0-rc.1" }
|
sea-schema = { version = "0.15.0-rc.3" }
|
||||||
sqlx = { version = "0.7", default-features = false, features = ["mysql", "postgres"], optional = true }
|
sqlx = { version = "0.7", default-features = false, features = ["mysql", "postgres"], optional = true }
|
||||||
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["env-filter", "fmt"] }
|
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["env-filter", "fmt"] }
|
||||||
tracing = { version = "0.1", default-features = false }
|
tracing = { version = "0.1", default-features = false }
|
||||||
|
@ -25,7 +25,7 @@ clap = { version = "4.3", features = ["env", "derive"], optional = true }
|
|||||||
dotenvy = { version = "0.15", default-features = false, optional = true }
|
dotenvy = { version = "0.15", default-features = false, optional = true }
|
||||||
sea-orm = { version = "1.0.0-rc.1", path = "../", default-features = false, features = ["macros"] }
|
sea-orm = { version = "1.0.0-rc.1", path = "../", default-features = false, features = ["macros"] }
|
||||||
sea-orm-cli = { version = "1.0.0-rc.1", path = "../sea-orm-cli", default-features = false, optional = true }
|
sea-orm-cli = { version = "1.0.0-rc.1", path = "../sea-orm-cli", default-features = false, optional = true }
|
||||||
sea-schema = { version = "0.15.0-rc.1" }
|
sea-schema = { version = "0.15.0-rc.3" }
|
||||||
tracing = { version = "0.1", default-features = false, features = ["log"] }
|
tracing = { version = "0.1", default-features = false, features = ["log"] }
|
||||||
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["env-filter", "fmt"] }
|
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["env-filter", "fmt"] }
|
||||||
futures = { version = "0.3", default-features = false, features = ["std"] }
|
futures = { version = "0.3", default-features = false, features = ["std"] }
|
||||||
|
@ -101,9 +101,9 @@ impl<'c> SchemaManager<'c> {
|
|||||||
T: AsRef<str>,
|
T: AsRef<str>,
|
||||||
{
|
{
|
||||||
let stmt = match self.conn.get_database_backend() {
|
let stmt = match self.conn.get_database_backend() {
|
||||||
DbBackend::MySql => MySql::has_table(table),
|
DbBackend::MySql => MySql.has_table(table),
|
||||||
DbBackend::Postgres => Postgres::has_table(table),
|
DbBackend::Postgres => Postgres.has_table(table),
|
||||||
DbBackend::Sqlite => Sqlite::has_table(table),
|
DbBackend::Sqlite => Sqlite.has_table(table),
|
||||||
};
|
};
|
||||||
|
|
||||||
let builder = self.conn.get_database_backend();
|
let builder = self.conn.get_database_backend();
|
||||||
@ -122,9 +122,9 @@ impl<'c> SchemaManager<'c> {
|
|||||||
C: AsRef<str>,
|
C: AsRef<str>,
|
||||||
{
|
{
|
||||||
let stmt = match self.conn.get_database_backend() {
|
let stmt = match self.conn.get_database_backend() {
|
||||||
DbBackend::MySql => MySql::has_column(table, column),
|
DbBackend::MySql => MySql.has_column(table, column),
|
||||||
DbBackend::Postgres => Postgres::has_column(table, column),
|
DbBackend::Postgres => Postgres.has_column(table, column),
|
||||||
DbBackend::Sqlite => Sqlite::has_column(table, column),
|
DbBackend::Sqlite => Sqlite.has_column(table, column),
|
||||||
};
|
};
|
||||||
|
|
||||||
let builder = self.conn.get_database_backend();
|
let builder = self.conn.get_database_backend();
|
||||||
@ -143,9 +143,9 @@ impl<'c> SchemaManager<'c> {
|
|||||||
I: AsRef<str>,
|
I: AsRef<str>,
|
||||||
{
|
{
|
||||||
let stmt = match self.conn.get_database_backend() {
|
let stmt = match self.conn.get_database_backend() {
|
||||||
DbBackend::MySql => MySql::has_index(table, index),
|
DbBackend::MySql => MySql.has_index(table, index),
|
||||||
DbBackend::Postgres => Postgres::has_index(table, index),
|
DbBackend::Postgres => Postgres.has_index(table, index),
|
||||||
DbBackend::Sqlite => Sqlite::has_index(table, index),
|
DbBackend::Sqlite => Sqlite.has_index(table, index),
|
||||||
};
|
};
|
||||||
|
|
||||||
let builder = self.conn.get_database_backend();
|
let builder = self.conn.get_database_backend();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user