Jump to content

[8491] Add newline at end of file [066_*.sql][mangos-0.12]


Guest mns
 Share

Recommended Posts

How need Add newline at end of file ?

Now endline is sql comment [ -- ]

this cause problem when merging sql files

example :

-- New system uses `LogGuid` from 0 to number defined in config.ALTER TABLE character_db_version CHANGE COLUMN required_066_8402_02_characters_guild_bank_eventlog required_066_8409_01_characters_guild bit;

diff --git a/sql/updates/066_8402_01_characters_guild_eventlog.sql b/sql/updates/066_8402_01_characters_guild_eventlog.sql
index 406a9fb..2eb4705 100644
--- a/sql/updates/066_8402_01_characters_guild_eventlog.sql
+++ b/sql/updates/066_8402_01_characters_guild_eventlog.sql
@@ -17,4 +17,5 @@ CREATE TABLE `guild_eventlog` (

-- The reason i decided for such dramatic change is that old guild_eventlog table didn't have Primary key and 
-- used LogGuids from 0 to infinity
--- New system uses LogGuids from 0 to number defined in config.
\\ No newline at end of file
+-- New system uses LogGuids from 0 to number defined in config.
+
diff --git a/sql/updates/066_8402_02_characters_guild_bank_eventlog.sql b/sql/updates/066_8402_02_characters_guild_bank_eventlog.sql
index 399971b..ec1c6ab 100644
--- a/sql/updates/066_8402_02_characters_guild_bank_eventlog.sql
+++ b/sql/updates/066_8402_02_characters_guild_bank_eventlog.sql
@@ -20,4 +20,5 @@ CREATE TABLE `guild_bank_eventlog` (

-- The reason i decided for such dramatic change is that old guild_bank_eventlog table used `TabId` = 0 for Money events and 
-- used `LogGuid` from 0 to infinity
--- New system uses `LogGuid` from 0 to number defined in config.
\\ No newline at end of file
+-- New system uses `LogGuid` from 0 to number defined in config.
+

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use