Skip to content

Commit

Permalink
add Esp table (#33)
Browse files Browse the repository at this point in the history
* feat: create table esp

* feat: revert table esp

* feat: verify table esp
  • Loading branch information
jordyBSK authored Jun 19, 2024
1 parent e095c1b commit 32d7886
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions database/migration/deploy/esp.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BEGIN;

create table esp
(
name character varying(20) not null,
ip character varying(15) NOT NULL
);

COMMIT;
5 changes: 5 additions & 0 deletions database/migration/revert/esp.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEGIN;

drop table esp;

COMMIT;
8 changes: 8 additions & 0 deletions database/migration/verify/esp.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BEGIN;

select * from esp
INSERT INTO esp (name, ip) VALUES ('ESP1', '192.168.1.10');
SELECT ip FROM esp WHERE name = 'ESP1';


COMMIT;

0 comments on commit 32d7886

Please sign in to comment.