Skip to content

Commit 67603ad

Browse files
authored
Merge pull request #224 from karllhughes/master
Updating seeds for tests
2 parents ce705d8 + 84bb922 commit 67603ad

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ tests/config.php
66
.idea/
77
vendor
88
composer.lock
9+
tests/sqlite.db
910
.DS_Store
11+
log.txt

tests/blog_postgresql.sql

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ DROP TABLE IF EXISTS events CASCADE;
2929
DROP VIEW IF EXISTS tag_usage;
3030
DROP TABLE IF EXISTS products CASCADE;
3131

32+
--
33+
-- Enables the Postgis extension
34+
--
35+
36+
CREATE EXTENSION IF NOT EXISTS postgis;
37+
3238
--
3339
-- Name: categories; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
3440
--
@@ -131,7 +137,8 @@ CREATE TABLE products (
131137
name character varying(255) NOT NULL,
132138
price decimal(10,2) NOT NULL,
133139
properties jsonb NOT NULL,
134-
created_at timestamp NOT NULL
140+
created_at timestamp NOT NULL,
141+
deleted_at timestamp NULL
135142
);
136143

137144
--

tests/blog_sqlite.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ CREATE TABLE `products` (
107107
`name` text(255) NOT NULL,
108108
`price` text(12) NOT NULL,
109109
`properties` json NOT NULL,
110-
`created_at` datetime NOT NULL
110+
`created_at` datetime NOT NULL,
111+
`deleted_at` datetime NULL
111112
);
112113

113114
INSERT INTO `products` (`id`, `name`, `price`, `properties`, `created_at`) VALUES (1, 'Calculator', '23.01', '{"depth":false,"model":"TRX-120","width":100,"height":null}', '1970-01-01 01:01:01');

0 commit comments

Comments
 (0)