migrate: refactor examples to use the new FromFS function
This commit is contained in:
1 parent
fe1498fe13
commit
d123214401
3 files changed
+25
-11
No files matched your search
@@ -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
|
||||
@@ -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