改进 迁移
This commit is contained in:
parent
023785f6a4
commit
a7f232bd1d
@ -1,20 +1,21 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"ariga.io/atlas/sql/sqltool"
|
||||
"context"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
"fmt"
|
||||
entmigrate "framework_v2/internal/ent/migrate"
|
||||
entmigrate "framework_v2/ent/migrate"
|
||||
"framework_v2/internal/migrations"
|
||||
_ "github.com/jackc/pgx/v5/stdlib"
|
||||
"github.com/pressly/goose/v3"
|
||||
"github.com/spf13/cobra"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"ariga.io/atlas/sql/sqltool"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
_ "github.com/jackc/pgx/v5/stdlib"
|
||||
"github.com/pressly/goose/v3"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var dsnCommand = &cobra.Command{
|
||||
|
0
internal/migrations/remove_me.sql
Normal file
0
internal/migrations/remove_me.sql
Normal file
Loading…
Reference in New Issue
Block a user