migrate: refactor examples to use the new FromFS function
This commit is contained in:
committed by
Michal Jan Matczuk
parent
fe1498fe13
commit
d123214401
13
migrate/example/cql/embed.go
Normal file
13
migrate/example/cql/embed.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2017 ScyllaDB
|
||||
// Use of this source code is governed by a ALv2-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build all integration
|
||||
|
||||
package cql
|
||||
|
||||
import "embed"
|
||||
|
||||
// Files contains *.cql schema migration files.
|
||||
//go:embed *.cql
|
||||
var Files embed.FS
|
||||
15
migrate/example/cql/m1.cql
Normal file
15
migrate/example/cql/m1.cql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Comment
|
||||
|
||||
CREATE TABLE bar ( id int PRIMARY KEY);
|
||||
|
||||
INSERT INTO bar (id) VALUES (1);
|
||||
|
||||
-- CALL 1;
|
||||
|
||||
INSERT INTO bar (id) VALUES (2);
|
||||
|
||||
-- CALL 2;
|
||||
|
||||
INSERT INTO bar (id) VALUES (3);
|
||||
|
||||
-- CALL 3;
|
||||
Reference in New Issue
Block a user