for create table statement dont use txn

This commit is contained in:
c9s 2024-01-19 15:27:06 +08:00
parent 611b2a9247
commit cfa0468867
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
20 changed files with 30 additions and 13 deletions

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `trades`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `orders`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `trades`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE INDEX trades_symbol ON trades(symbol);
CREATE INDEX trades_symbol_fee_currency ON trades(symbol, fee_currency, traded_at);

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `orders`
(

View File

@ -1,5 +1,9 @@
-- +up
-- +begin
ALTER TABLE `trades` ADD COLUMN `order_id` INTEGER;
-- +end
-- +down
-- +begin
ALTER TABLE `trades` RENAME COLUMN `order_id` TO `order_id_deleted`;
-- +end

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin
CREATE TABLE `klines`

View File

@ -1,5 +0,0 @@
-- +up
SELECT 1;
-- +down
SELECT 1;

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `rewards`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin
CREATE TABLE `withdraws`

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin
CREATE TABLE `deposits`

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin
CREATE TABLE `nav_history_details`

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin
CREATE TABLE `kucoin_klines`

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `profits`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `margin_loans`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `margin_repays`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `margin_interests`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
CREATE TABLE `margin_liquidations`
(

View File

@ -1,3 +1,4 @@
-- !txn
-- +up
-- +begin
CREATE TABLE `bybit_klines`