Add SQLite support for easy setup (#336)
* Modifies schema to allow SQLite as a DB driver. SQLite is preinstalled in most OSes allowing for minimal prerequisites in the installation process. * Removes Redis dependency and replaces "real" redis instance with ioredis-mock this is not feature complete and errors are expected. * Updates medusa new command to only ask for Postgres credentials if the starter template has database_type === "postgres" in medusa-config.js * Small improvements to bin resolution * Improvements to endpoint stability
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
Index,
|
||||
} from "typeorm"
|
||||
import { ulid } from "ulid"
|
||||
import { DbAwareColumn } from "../utils/db-aware-column"
|
||||
|
||||
import { ClaimOrder } from "./claim-order"
|
||||
import { Order } from "./order"
|
||||
@@ -81,7 +82,7 @@ export class ShippingMethod {
|
||||
@Column({ type: "int" })
|
||||
price: number
|
||||
|
||||
@Column({ type: "jsonb" })
|
||||
@DbAwareColumn({ type: "jsonb" })
|
||||
data: any
|
||||
|
||||
@BeforeInsert()
|
||||
|
||||
Reference in New Issue
Block a user